Update btserver.go

This commit is contained in:
nikk gitanes
2022-01-20 02:38:56 +03:00
parent b0c6730078
commit 12e0222665

View File

@@ -185,7 +185,7 @@ func getPublicIp4() net.IP {
case *net.IPAddr: case *net.IPAddr:
ip = v.IP ip = v.IP
} }
if !ip.IsLoopback() && !ip.IsPrivate() && ip.To4 != nil { if !ip.IsLoopback() && !ip.IsPrivate() && ip.To4 != nil && ip.To16 == nil {
return ip return ip
} }
} }