From 31ce612e2e349b7ee572b97721e1c03aaa8d690e Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Wed, 12 Aug 2020 03:38:52 +0200 Subject: [PATCH] temporarily disable ipv6 --- 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 e37ba69..e500eaf 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()) { + if ipnet.IP.To16() != nil && govalidator.IsIPv6(ipnet.IP.String()) && false { pool = append(pool, throttledIP{ IP: ipnet.IP.String(), LastUse: time.Now().Add(-5 * time.Minute),