Log anonymized DNS routes

This commit is contained in:
Frank Denis 2019-10-14 11:02:13 +02:00
parent e6b9f3c2c0
commit e9ec2aa801
1 changed files with 7 additions and 0 deletions

View File

@ -488,6 +488,13 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error {
config.printRegisteredServers(proxy, *jsonOutput)
os.Exit(0)
}
if proxy.routes != nil && len(*proxy.routes) > 0 {
for _, server := range proxy.registeredServers {
if via, ok := (*proxy.routes)[server.name]; ok {
dlog.Noticef("Anonymized DNS: routing [%v] via [%v]", server.name, via)
}
}
}
if *check {
dlog.Notice("Configuration successfully checked")
os.Exit(0)