error checker

This commit is contained in:
simon987 2020-04-11 18:52:43 -04:00
parent 5c4d4961e3
commit 25a19ab557

View File

@ -195,7 +195,7 @@ func IsPermanentError(err error) bool {
if opErr.Timeout() {
// Usually means thalt there is no route to host
return !opErr.Temporary()
return true
}
switch t := opErr.Err.(type) {