Unblock ACL apply filtering because of dns probes (#1711)

moved the e.dnsServer.ProbeAvailability() to run after ACL apply filtering

run the probes in parallel
This commit is contained in:
Maycon Santos
2024-03-15 18:57:18 +01:00
committed by GitHub
parent fc7c1e397f
commit 416f04c27a
2 changed files with 12 additions and 5 deletions

View File

@ -698,15 +698,16 @@ func (e *Engine) updateNetworkMap(networkMap *mgmProto.NetworkMap) error {
log.Errorf("failed to update dns server, err: %v", err)
}
// Test received (upstream) servers for availability right away instead of upon usage.
// If no server of a server group responds this will disable the respective handler and retry later.
e.dnsServer.ProbeAvailability()
if e.acl != nil {
e.acl.ApplyFiltering(networkMap)
}
e.networkSerial = serial
// Test received (upstream) servers for availability right away instead of upon usage.
// If no server of a server group responds this will disable the respective handler and retry later.
e.dnsServer.ProbeAvailability()
return nil
}