From 13e9eb6680c1ff28053430c8e30843c2dff46056 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 20 Feb 2016 20:35:52 -0500 Subject: [PATCH] forward-port outgoing interface fix from RC_1_0 --- ChangeLog | 1 + src/utp_socket_manager.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 85165ddcf..1dca747ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/utp_socket_manager.cpp b/src/utp_socket_manager.cpp index 2392ad365..c6cb1ee4b 100644 --- a/src/utp_socket_manager.cpp +++ b/src/utp_socket_manager.cpp @@ -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; } }