mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-01-03 01:09:32 +01:00
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)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user