mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-15 00:50:25 +02:00
cmd/ctrld: add default timeout for os resolver
So it can fail fast if internet broken suddenly. While at it, also filtering out ipv6 nameservers if ipv6 not available.
This commit is contained in:
committed by
Cuong Manh Le
parent
096e7ea429
commit
77b62f8734
@@ -342,6 +342,7 @@ func ttlFromMsg(msg *dns.Msg) uint32 {
|
||||
}
|
||||
|
||||
var osUpstreamConfig = &ctrld.UpstreamConfig{
|
||||
Name: "OS resolver",
|
||||
Type: ctrld.ResolverTypeOS,
|
||||
Name: "OS resolver",
|
||||
Type: ctrld.ResolverTypeOS,
|
||||
Timeout: 2000,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user