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

Fixes #12443
This commit is contained in:
Raif Atef 2020-04-12 05:25:49 +02:00
parent c25b3e623c
commit 1549b782e6

View file

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