mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Fix outgoing interface is not getting assigned
Assignment was missing in main branch of condition statement. Closes https://github.com/qbittorrent/qBittorrent/issues/12421
This commit is contained in:
parent
f647b5a97f
commit
bf1c9e34d7
@ -1529,10 +1529,11 @@ void Session::configureNetworkInterfaces(lt::settings_pack &settingsPack)
|
||||
for (const QString &ip : asConst(getListeningIPs())) {
|
||||
const QHostAddress addr {ip};
|
||||
if (!addr.isNull()) {
|
||||
endpoints << ((addr.protocol() == QAbstractSocket::IPv6Protocol)
|
||||
const QString ip = ((addr.protocol() == QAbstractSocket::IPv6Protocol)
|
||||
? ('[' + Utils::Net::canonicalIPv6Addr(addr).toString() + ']')
|
||||
: addr.toString())
|
||||
+ portString;
|
||||
: addr.toString());
|
||||
endpoints << (ip + portString);
|
||||
outgoingInterfaces << ip;
|
||||
}
|
||||
else {
|
||||
// ip holds an interface name
|
||||
|
Loading…
Reference in New Issue
Block a user