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.
This commit is contained in:
Will Elwood 2019-11-01 09:07:57 +00:00 committed by GitHub
parent 816acb9d8d
commit cd675913b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ func _dnsExchange(proxy *Proxy, proto string, query *dns.Msg, serverAddress stri
return nil, 0, err return nil, 0, err
} }
upstreamAddr := tcpAddr upstreamAddr := tcpAddr
if relayUDPAddr != nil { if relayTCPAddr != nil {
proxy.prepareForRelay(tcpAddr.IP, tcpAddr.Port, &binQuery) proxy.prepareForRelay(tcpAddr.IP, tcpAddr.Port, &binQuery)
upstreamAddr = relayTCPAddr upstreamAddr = relayTCPAddr
} }