From 067322203dee5f0c4da8890eb7fcd5ee4a831190 Mon Sep 17 00:00:00 2001 From: shadow1ng Date: Thu, 1 Apr 2021 10:39:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20CheckErrs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/log.go b/common/log.go index 9d784ea..19a5601 100644 --- a/common/log.go +++ b/common/log.go @@ -60,7 +60,7 @@ func CheckErrs(err error) bool { if err == nil { return false } - errs := []string{"closed by the remote host", "too many connections", "i/o timeout", "EOF", "A connection attempt failed", "established connection failed", "connection attempt failed", "Unable to read", "is not allowed to connect to this", "no pg_hba.conf entry"} + errs := []string{"closed by the remote host", "too many connections", "i/o timeout", "EOF", "A connection attempt failed", "established connection failed", "connection attempt failed", "Unable to read", "is not allowed to connect to this", "no pg_hba.conf entry", "no supported methods remain"} for _, key := range errs { if strings.Contains(strings.ToLower(err.Error()), strings.ToLower(key)) { return true