Support "directbind <iface>" config option; binds outgoing direct connections to interface.
Revert last patch in favour of using direct://iface syntax.
Print message on successful bind.
Try SO_BINDTODEVICE. But don't expect it to work, so fall back to bind().
Note to self, when copy-pasting example code, remember to change variables to match.
Change directconnect() to use getaddrinfo() instead of gethostbyname(), as it's reentrant and supports IPv6.