修复ssh跳过问题

This commit is contained in:
shadow1ng 2021-05-27 14:19:21 +08:00
parent f5c9667f91
commit 61e814119d

View File

@ -73,9 +73,9 @@ func CheckErrs(err error) bool {
"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",
"No connection could be made",
"invalid packet size",
"bad connection",
}
for _, key := range errs {
if strings.Contains(strings.ToLower(err.Error()), strings.ToLower(key)) {