From 9ac4e6eed88c1ea1e6cdb6865889320164ad0b85 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 29 Mar 2020 18:19:06 +0200 Subject: [PATCH] fix double call to bind() when setting outgoing_interfaces --- ChangeLog | 1 + src/session_impl.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b512c318a..78614a2d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ + * fix issue with outgoing_interfaces setting, where bind() would be called twice * add build option to disable share-mode * support validation of HTTPS trackers * deprecate strict super seeding mode diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 2b8fd9ee9..4beda20f8 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -5009,7 +5009,6 @@ namespace { 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; }