From 1549b782e698c7de43c84a5338aa09b003af5dc3 Mon Sep 17 00:00:00 2001 From: Raif Atef Date: Sun, 12 Apr 2020 05:25:49 +0200 Subject: [PATCH] Do not use 0.0.0.0 or [::] for outgoing interfaces Fixes #12443 --- src/base/bittorrent/session.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index 5dc059503..74b337ddc 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -1534,7 +1534,9 @@ void Session::configureNetworkInterfaces(lt::settings_pack &settingsPack) ? ('[' + Utils::Net::canonicalIPv6Addr(addr).toString() + ']') : addr.toString()); endpoints << (ip + portString); - outgoingInterfaces << ip; + + if ((ip != "0.0.0.0") && (ip != "[::]")) + outgoingInterfaces << ip; } else { // ip holds an interface name