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:
parent
816acb9d8d
commit
cd675913b2
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue