mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-27 12:52:27 +02:00
all: use parallel dialer for bootstrapping ip
So we don't have to depend on network probing for checking ipv4/ipv6 enabled, making ctrld working more stably.
This commit is contained in:
committed by
Cuong Manh Le
parent
f73cbde7a5
commit
0af7f64bca
+1
-1
@@ -131,7 +131,7 @@ func LookupIP(domain string) []string {
|
||||
}
|
||||
|
||||
func lookupIP(domain string, timeout int, withBootstrapDNS bool) (ips []string) {
|
||||
resolver := &osResolver{nameservers: availableNameservers()}
|
||||
resolver := &osResolver{nameservers: nameservers()}
|
||||
if withBootstrapDNS {
|
||||
resolver.nameservers = append([]string{net.JoinHostPort(bootstrapDNS, "53")}, resolver.nameservers...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user