all: upd go, tools, ui; fix panics

This commit is contained in:
Ainar Garipov
2023-04-05 16:35:27 +03:00
parent a21558f418
commit 9a7315dbea
18 changed files with 124 additions and 95 deletions

View File

@@ -874,13 +874,14 @@ func customDialContext(ctx context.Context, network, addr string) (conn net.Conn
}
addrs, err := Context.dnsServer.Resolve(host)
log.Debug("dnsServer.Resolve: %s: %v", host, addrs)
if err != nil {
return nil, err
return nil, fmt.Errorf("resolving %q: %w", host, err)
}
log.Debug("dnsServer.Resolve: %q: %v", host, addrs)
if len(addrs) == 0 {
return nil, fmt.Errorf("couldn't lookup host: %s", host)
return nil, fmt.Errorf("couldn't lookup host: %q", host)
}
var dialErrs []error