* control: don't use custom resolver for tests

This commit is contained in:
Simon Zolin 2019-04-25 15:37:10 +03:00
parent d4fcef8d04
commit 788e91a51e
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ func customDialContext(ctx context.Context, network, addr string) (net.Conn, err
Timeout: time.Minute * 5,
}
if net.ParseIP(host) != nil {
if net.ParseIP(host) != nil || config.DNS.Port == 0 {
con, err := dialer.DialContext(ctx, network, addr)
return con, err
}