Skip to content

Allow binding to non-local adresses for TCP

Julian Brost requested to merge julianbrost/knot:tcp-freebind into master

The UDP code already allows binding to non-local addresses using the IP_FREEBIND or IP_BINDANY socket options, but the TCP code is missing this so far.

At the moment, Knot successfully binds to the non-local address on the UDP socket, but then it tries to bind to the address on TCP without this socket option, fails and closes the UDP socket again.

Merge request reports