From cd675913b27d5633b528f4e34a85a48b5118760f Mon Sep 17 00:00:00 2001 From: Will Elwood Date: Fri, 1 Nov 2019 09:07:57 +0000 Subject: [PATCH] Fix copy-paste oversight I think these variables are always both nil or both not nil, but maybe in the future they might not be. --- dnscrypt-proxy/dnscrypt_certs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/dnscrypt_certs.go b/dnscrypt-proxy/dnscrypt_certs.go index a30c2955..0d77b766 100644 --- a/dnscrypt-proxy/dnscrypt_certs.go +++ b/dnscrypt-proxy/dnscrypt_certs.go @@ -249,7 +249,7 @@ func _dnsExchange(proxy *Proxy, proto string, query *dns.Msg, serverAddress stri return nil, 0, err } upstreamAddr := tcpAddr - if relayUDPAddr != nil { + if relayTCPAddr != nil { proxy.prepareForRelay(tcpAddr.IP, tcpAddr.Port, &binQuery) upstreamAddr = relayTCPAddr }