mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-16 13:17:19 +02:00
cmd/cli: do not send test query to external upstreams
This commit is contained in:
committed by
Cuong Manh Le
parent
7591a0ccc6
commit
8939debbc0
@@ -60,6 +60,11 @@ func (p *prog) checkDnsLoop() {
|
|||||||
if p.um.isDown("upstream." + n) {
|
if p.um.isDown("upstream." + n) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
// Do not send test query to external upstream.
|
||||||
|
if !canBeLocalUpstream(uc.Domain) {
|
||||||
|
mainLog.Load().Debug().Msgf("skipping external: upstream.%s", n)
|
||||||
|
continue
|
||||||
|
}
|
||||||
uid := uc.UID()
|
uid := uc.UID()
|
||||||
p.loop[uid] = false
|
p.loop[uid] = false
|
||||||
upstream[uid] = uc
|
upstream[uid] = uc
|
||||||
|
|||||||
Reference in New Issue
Block a user