Skip to content

Commit 1c05189

Browse files
committed
Use (*net.TCPAddr).String() for formatting
1 parent f1a76c5 commit 1c05189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/go-socks5/socks5.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (s *Server) ServeConn(conn net.Conn) error {
143143
// Authenticate the connection
144144
authContext, err := s.authenticate(conn, bufConn)
145145
if err != nil {
146-
err = fmt.Errorf("Failed to authenticate %s:%d: %w", remoteAddr.IP, remoteAddr.Port, err)
146+
err = fmt.Errorf("Failed to authenticate %s: %w", remoteAddr, err)
147147
s.config.Logger.Printf("[ERR] socks: %v", err)
148148
return err
149149
}

0 commit comments

Comments
 (0)