pref: update IPV4 ISP check
This commit is contained in:
parent
921e1bb0af
commit
10c1fbbbb1
@ -71,6 +71,7 @@ func ToIP(address net.IP) protocol.IP {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func reverseIPv4(ip net.IP) string {
|
func reverseIPv4(ip net.IP) string {
|
||||||
|
ip = ip.To4()
|
||||||
return fmt.Sprintf("%d.%d.%d.%d.", ip[3], ip[2], ip[1], ip[0])
|
return fmt.Sprintf("%d.%d.%d.%d.", ip[3], ip[2], ip[1], ip[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user