Skip to content

fix: dev: Don't enable REUSEADDR on outgoing UDP sockets

Ondřej Surý requested to merge ondrej/fix-outgoing-UDP-port-selection into main

The outgoing UDP sockets enabled SO_REUSEADDR that allows sharing of the UDP sockets, but with one big caveat - the socket that was opened the last would get all traffic. The dispatch code would ignore the invalid responses in the dns_dispatch, but this could lead to unexpected results.

Edited by Ondřej Surý

Merge request reports