diff --git a/proxy/http/server.go b/proxy/http/server.go index a144dd0e8..a8c75bb4a 100644 --- a/proxy/http/server.go +++ b/proxy/http/server.go @@ -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() }