Log anonymized DNS routes
This commit is contained in:
parent
e6b9f3c2c0
commit
e9ec2aa801
|
@ -488,6 +488,13 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error {
|
||||||
config.printRegisteredServers(proxy, *jsonOutput)
|
config.printRegisteredServers(proxy, *jsonOutput)
|
||||||
os.Exit(0)
|
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 {
|
if *check {
|
||||||
dlog.Notice("Configuration successfully checked")
|
dlog.Notice("Configuration successfully checked")
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
|
Loading…
Reference in New Issue