Bind outgoing sockets again.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 18 Aug 2013 21:55:40 +0000 (23:55 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 18 Aug 2013 21:55:40 +0000 (23:55 +0200)
commit65f5e8fba45c6c51cfdfa2a41ab6db14663cdf73
tree925118f0036e3edb1011d30daac86f9c88754e7b
parent0c54f365534fcb345e87961e71d452e269e170fe
Bind outgoing sockets again.

Commit cff5a84 removed the feature of binding outgoing TCP sockets to a local
address. We now call bind() again, but only if there is exactly one listening
socket with the same address family as the destination address of the outgoing
socket.
src/net_socket.c