mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 21:02:44 +08:00
fix: Log.go文件的已知错误
This commit is contained in:
parent
b14510fa52
commit
0cfbf40baf
@ -145,19 +145,14 @@ func CheckErrs(err error) bool {
|
|||||||
|
|
||||||
// 已知错误列表
|
// 已知错误列表
|
||||||
errs := []string{
|
errs := []string{
|
||||||
"远程主机关闭连接",
|
"closed by the remote host", "too many connections",
|
||||||
"连接数过多",
|
"i/o timeout", "EOF", "A connection attempt failed",
|
||||||
"连接超时",
|
"established connection failed", "connection attempt failed",
|
||||||
"EOF",
|
"Unable to read", "is not allowed to connect to this",
|
||||||
"连接尝试失败",
|
"no pg_hba.conf entry",
|
||||||
"建立连接失败",
|
"No connection could be made",
|
||||||
"无法连接",
|
"invalid packet size",
|
||||||
"无法读取数据",
|
"bad connection",
|
||||||
"不允许连接",
|
|
||||||
"无pg_hba.conf配置项",
|
|
||||||
"无法建立连接",
|
|
||||||
"无效的数据包大小",
|
|
||||||
"连接异常",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查错误是否匹配
|
// 检查错误是否匹配
|
||||||
|
Loading…
Reference in New Issue
Block a user