retrieve the root cause of the error

pull/714/merge
Darien Raymond 2017-11-16 12:01:42 +01:00
parent cddf74334d
commit c4be61e854
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ func parseHost(rawHost string, defaultPort net.Port) (net.Destination, error) {
}
func isTimeout(err error) bool {
nerr, ok := err.(net.Error)
nerr, ok := errors.Cause(err).(net.Error)
return ok && nerr.Timeout()
}