fix binding of outgoing interface, when configured

This commit is contained in:
arvidn 2020-01-07 18:04:37 +01:00 committed by Arvid Norberg
parent 96695fa714
commit f508a433a4
2 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
* fix binding sockets to outgoing interface
* add new socks5_alert to trouble shoot SOCKS5 proxies
1.2.3 release

View File

@ -5035,6 +5035,7 @@ namespace aux {
bind_ep.address(bind_socket_to_device(m_io_service, s
, remote_address.is_v4() ? tcp::v4() : tcp::v6()
, ifname.c_str(), bind_ep.port(), ec));
s.bind(bind_ep, ec);
return bind_ep;
}