mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-27 12:52:27 +02:00
Fix wrong timeout in lookupIP
The assignment is changed wrongly in process of refactoring parallel dialer for resolving bootstrap IP. While at it, also satisfy staticheck for jffs not enabled error.
This commit is contained in:
committed by
Cuong Manh Le
parent
9689607409
commit
fa14f1dadf
+1
-1
@@ -143,7 +143,7 @@ func lookupIP(domain string, timeout int, withBootstrapDNS bool) (ips []string)
|
||||
ProxyLog.Debug().Msgf("Resolving %q using bootstrap DNS %q", domain, resolver.nameservers)
|
||||
timeoutMs := 2000
|
||||
if timeout > 0 && timeout < timeoutMs {
|
||||
timeoutMs = timeoutMs
|
||||
timeoutMs = timeout
|
||||
}
|
||||
questionDomain := dns.Fqdn(domain)
|
||||
ipFromRecord := func(record dns.RR) string {
|
||||
|
||||
Reference in New Issue
Block a user