mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Fixup previous commits and allow IPv6 interface addresses too.
This commit is contained in:
parent
1397a951fe
commit
5878d49f60
5 changed files with 58 additions and 48 deletions
|
@ -1339,6 +1339,11 @@ QString Preferences::getNetworkInterfaceName() const
|
|||
return value("Preferences/Connection/InterfaceName").toString();
|
||||
}
|
||||
|
||||
void Preferences::setNetworkInterfaceName(const QString& iface)
|
||||
{
|
||||
setValue("Preferences/Connection/InterfaceName", iface);
|
||||
}
|
||||
|
||||
void Preferences::setNetworkInterfaceAddress(const QString& addr)
|
||||
{
|
||||
setValue("Preferences/Connection/InterfaceAddress", addr);
|
||||
|
@ -1349,11 +1354,6 @@ QString Preferences::getNetworkInterfaceAddress() const
|
|||
return value("Preferences/Connection/InterfaceAddress").toString();
|
||||
}
|
||||
|
||||
void Preferences::setNetworkInterfaceName(const QString& iface)
|
||||
{
|
||||
setValue("Preferences/Connection/InterfaceName", iface);
|
||||
}
|
||||
|
||||
bool Preferences::getListenIPv6() const
|
||||
{
|
||||
return value("Preferences/Connection/InterfaceListenIPv6", false).toBool();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue