Skip to content

Commit

Permalink
Use (*net.TCPAddr).String() for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed May 29, 2024
1 parent f1a76c5 commit 1c05189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/go-socks5/socks5.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (s *Server) ServeConn(conn net.Conn) error {
// Authenticate the connection
authContext, err := s.authenticate(conn, bufConn)
if err != nil {
err = fmt.Errorf("Failed to authenticate %s:%d: %w", remoteAddr.IP, remoteAddr.Port, err)
err = fmt.Errorf("Failed to authenticate %s: %w", remoteAddr, err)
s.config.Logger.Printf("[ERR] socks: %v", err)
return err
}
Expand Down

0 comments on commit 1c05189

Please sign in to comment.