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. 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