pref: update IPV4 ISP check

This commit is contained in:
thehrz 2024-08-21 19:38:17 +08:00
parent 921e1bb0af
commit 10c1fbbbb1
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855

View File

@ -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])
} }