1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2024-12-25 00:00:55 +01:00

We can now receive queries on UDP and forward them on TCP

Something that had never been possible with the old implementation
This commit is contained in:
Frank Denis 2018-01-09 20:10:06 +01:00
parent 1a59d93192
commit 35ec5bd044

View File

@ -67,7 +67,7 @@ func (proxy *Proxy) udpListener(listenAddr *net.UDPAddr) error {
}
packet := buffer[:length]
go func() {
proxy.processIncomingQuery(proxy.serversInfo.getOne(), "udp", packet, &clientAddr, clientPc)
proxy.processIncomingQuery(proxy.serversInfo.getOne(), proxy.mainProto, packet, &clientAddr, clientPc)
}()
}
}