From ec1ce0ea7b702ef254aa586422871a319c39c78c Mon Sep 17 00:00:00 2001 From: blackcat Date: Fri, 25 Oct 2024 09:29:18 +0000 Subject: [PATCH] chore: add string type --- internal/ngap/service/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ngap/service/service.go b/internal/ngap/service/service.go index b180ff7..8483a1f 100644 --- a/internal/ngap/service/service.go +++ b/internal/ngap/service/service.go @@ -118,7 +118,7 @@ func listenAndServe(localAddr, remoteAddr *sctp.SCTPAddr, errChan chan<- error) n, sctp_info, _, sctpread_err := conn.SCTPRead(data) if sctpread_err != nil { - ngapLog.Debugf("[SCTP] AMF SCTP address: %s", remoteAddr) + ngapLog.Debugf("[SCTP] AMF SCTP address: %s", remoteAddr.String()) if sctpread_err == io.EOF || sctpread_err == io.ErrUnexpectedEOF { ngapLog.Warn("[SCTP] Close connection.") errConn := conn.Close()