diff --git a/server/torr/btserver.go b/server/torr/btserver.go index 8ec47e2..8488bf3 100644 --- a/server/torr/btserver.go +++ b/server/torr/btserver.go @@ -185,7 +185,7 @@ func getPublicIp4() net.IP { case *net.IPAddr: ip = v.IP } - if !ip.IsLoopback() && !ip.IsPrivate() && ip.To4 != nil { + if !ip.IsLoopback() && !ip.IsPrivate() && ip.To4 != nil && ip.To16 == nil { return ip } }