mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-12-28 00:20:13 +01:00
When forwaring, log the forwarding server instead of the regular one
Fixes #928
This commit is contained in:
parent
f4c1bb7bbf
commit
23aa3dd57d
@ -92,6 +92,7 @@ func (plugin *PluginForward) Eval(pluginsState *PluginsState, msg *dns.Msg) erro
|
||||
return nil
|
||||
}
|
||||
server := servers[rand.Intn(len(servers))]
|
||||
pluginsState.serverName = server
|
||||
respMsg, err := dns.Exchange(msg, server)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user