fix: Unhandled dns resolve failure error
This commit is contained in:
parent
42c3611715
commit
3e649ae8e8
1 changed files with 4 additions and 0 deletions
|
@ -215,6 +215,10 @@ func concurrentDualStackDialContext(ctx context.Context, network, address string
|
|||
ips, err = resolver.ResolveAllIPProxyServerHost(host)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return concurrentDialContext(ctx, network, ips, port, opt)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue