mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-12 15:57:57 +00:00
Merge pull request #12484 from rwasef1830/skip-setting-outgoing-interface-for-any-ip
Do not use 0.0.0.0 or [::] for outgoing interfaces
This commit is contained in:
commit
5d10724044
@ -1534,7 +1534,9 @@ 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);
|
||||||
outgoingInterfaces << ip;
|
|
||||||
|
if ((ip != "0.0.0.0") && (ip != "[::]"))
|
||||||
|
outgoingInterfaces << ip;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// ip holds an interface name
|
// ip holds an interface name
|
||||||
|
Loading…
Reference in New Issue
Block a user