1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2024-12-29 00:30:30 +01:00

When forwaring, log the forwarding server instead of the regular one

Fixes #928
This commit is contained in:
Frank Denis 2019-09-11 14:17:11 +02:00
parent f4c1bb7bbf
commit 23aa3dd57d

View File

@ -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