From ddca850c17c7d2b7c115bcc9b5917e8d17c9d269 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Wed, 12 Aug 2020 04:17:21 +0200 Subject: [PATCH] nevermind... re-enable ipv6 (i should make it a flag) --- ip_manager/throttle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip_manager/throttle.go b/ip_manager/throttle.go index e500eaf..e37ba69 100644 --- a/ip_manager/throttle.go +++ b/ip_manager/throttle.go @@ -45,7 +45,7 @@ func GetIPPool(stopGrp *stop.Group) (*IPPool, error) { var pool []throttledIP for _, address := range addrs { if ipnet, ok := address.(*net.IPNet); ok && ipnet.IP.IsGlobalUnicast() { - if ipnet.IP.To16() != nil && govalidator.IsIPv6(ipnet.IP.String()) && false { + if ipnet.IP.To16() != nil && govalidator.IsIPv6(ipnet.IP.String()) { pool = append(pool, throttledIP{ IP: ipnet.IP.String(), LastUse: time.Now().Add(-5 * time.Minute),