Bind outgoing TCP sockets.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 27 Apr 2017 18:58:10 +0000 (20:58 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 27 Apr 2017 18:58:10 +0000 (20:58 +0200)
commita25c0552ade7533e977cb585d82ff5c7b53614f5
tree111f8916ca133d992a6971af254f08fda8f31b23
parent6b5cfe97f4d3f93bde5c3eac5cb82b20b160ae36
Bind outgoing TCP sockets.

This is important for multi-homed users that want to ensure the source
address of outgoing TCP connections is the same as the address that tinc
is listening on.

Binding is done automatically if there is exactly one listening address
for a given address family.
src/net_socket.c