From 4d915587e01bb1449d92fa8e02896454601d3b87 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Sat, 30 May 2020 02:18:20 +0200 Subject: [PATCH] temporarily disable ipv6 --- ip_manager/throttle.go | 2 +- manager/manager.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ip_manager/throttle.go b/ip_manager/throttle.go index bf48b88..ba60495 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), diff --git a/manager/manager.go b/manager/manager.go index 72819f0..40377ce 100644 --- a/manager/manager.go +++ b/manager/manager.go @@ -225,7 +225,9 @@ func (s *SyncManager) Start() error { "this channel does not belong to this wallet!", "You already have a stream claim published under the name", "Daily Limit Exceeded", + "quotaExceeded", } + if util.SubstringInSlice(err.Error(), fatalErrors) { return errors.Prefix("@Nikooo777 this requires manual intervention! Exiting...", err) }