Browse Source

Merge pull request #12484 from rwasef1830/skip-setting-outgoing-interface-for-any-ip

Do not use 0.0.0.0 or [::] for outgoing interfaces
adaptive-webui-19844
Mike Tzou 5 years ago committed by GitHub
parent
commit
5d10724044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/bittorrent/session.cpp

2
src/base/bittorrent/session.cpp

@ -1534,6 +1534,8 @@ void Session::configureNetworkInterfaces(lt::settings_pack &settingsPack)
? ('[' + Utils::Net::canonicalIPv6Addr(addr).toString() + ']') ? ('[' + Utils::Net::canonicalIPv6Addr(addr).toString() + ']')
: addr.toString()); : addr.toString());
endpoints << (ip + portString); endpoints << (ip + portString);
if ((ip != "0.0.0.0") && (ip != "[::]"))
outgoingInterfaces << ip; outgoingInterfaces << ip;
} }
else { else {

Loading…
Cancel
Save