net.IP(req.RemoteAddr)
instead of net.ParseIP(req.RemoteAddr)
#1482
Labels
net.IP(req.RemoteAddr)
instead of net.ParseIP(req.RemoteAddr)
#1482
Because
net.IP
's underlying type is a[]byte
, thenet.IP
conversion fromreq.RemoteAddr
(which is a string) succeeds, but of course doesn't end up with the expected result.The text was updated successfully, but these errors were encountered: