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
1 changed files with 1 additions and 1 deletions

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)
}()
}
}