From 23aa3dd57d01591277c18a8479c30cd33192db58 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 11 Sep 2019 14:17:11 +0200 Subject: [PATCH] When forwaring, log the forwarding server instead of the regular one Fixes #928 --- dnscrypt-proxy/plugin_forward.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dnscrypt-proxy/plugin_forward.go b/dnscrypt-proxy/plugin_forward.go index aa63bb8c..f2e56542 100644 --- a/dnscrypt-proxy/plugin_forward.go +++ b/dnscrypt-proxy/plugin_forward.go @@ -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