Skip to content

Commit ff48987

Browse files
committed
When using SOCKS + relay + a simple DNS exchange, send to the relay
Not to the server
1 parent 9bb7b8b commit ff48987

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnscrypt-proxy/dnsutils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ func _dnsExchange(
550550
if proxyDialer == nil {
551551
pc, err = net.DialTimeout("tcp", upstreamAddr.String(), proxy.timeout)
552552
} else {
553-
pc, err = (*proxyDialer).Dial("tcp", tcpAddr.String())
553+
pc, err = (*proxyDialer).Dial("tcp", upstreamAddr.String())
554554
}
555555
if err != nil {
556556
return DNSExchangeResponse{err: err}

0 commit comments

Comments
 (0)