forward-port outgoing interface fix from RC_1_0

This commit is contained in:
arvidn 2016-02-20 20:35:52 -05:00
parent 5d18800e04
commit 13e9eb6680
2 changed files with 3 additions and 2 deletions

View File

@ -87,6 +87,7 @@
1.0.9 release
* fix issue in checking outgoing interfaces (when that option is enabled)
* python binding fix for boost-1.60.0
* optimize enumeration of network interfaces on windows
* improve reliability of binding listen sockets

View File

@ -195,13 +195,13 @@ namespace libtorrent
if (is_any(i->destination) && i->destination.is_v4() == remote.is_v4())
{
best = &*i;
continue;
break;
}
if (match_addr_mask(remote, i->destination, i->netmask))
{
best = &*i;
continue;
break;
}
}