Browse Source

Do not use 0.0.0.0 or [::] for outgoing interfaces

Fixes #12443
adaptive-webui-19844
Raif Atef 5 years ago
parent
commit
1549b782e6
  1. 4
      src/base/bittorrent/session.cpp

4
src/base/bittorrent/session.cpp

@ -1534,7 +1534,9 @@ void Session::configureNetworkInterfaces(lt::settings_pack &settingsPack) @@ -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

Loading…
Cancel
Save