mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-03 07:45:29 -05:00
retrieve the root cause of the error
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user