mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 18:56:08 +03: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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue