You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On tip, the file net/ipsock_posix.go has these lines
if ip = ip.To4(); ip == nil {
return nil, &AddrError{Err: "non-IPv4 address", Addr: ip.String()}
}
It's pretty clear here that the ip.String stored in AddrError is using the wrong ip. This code will always set the Addr field to "<nil>".
The same error occurs a few lines down using To16.
I would send in the obvious fix, but the effect would be to change the Addr field from "<nil>" to "?", which is only barely an improvement. We probably need to fix these cases in ipsock_posix.go and also fix IP.String to produce more useful output for an unrecognized length.
The text was updated successfully, but these errors were encountered:
On tip, the file net/ipsock_posix.go has these lines
It's pretty clear here that the
ip.String
stored inAddrError
is using the wrongip
. This code will always set theAddr
field to"<nil>"
.The same error occurs a few lines down using
To16
.I would send in the obvious fix, but the effect would be to change the
Addr
field from"<nil>"
to"?"
, which is only barely an improvement. We probably need to fix these cases in ipsock_posix.go and also fixIP.String
to produce more useful output for an unrecognized length.The text was updated successfully, but these errors were encountered: