mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Merge pull request #5096 from Harekiet/kietC
Bind directly to an IP instead of using a network Interface
This commit is contained in:
commit
1397a951fe
5 changed files with 89 additions and 8 deletions
|
@ -1339,6 +1339,16 @@ QString Preferences::getNetworkInterfaceName() const
|
|||
return value("Preferences/Connection/InterfaceName").toString();
|
||||
}
|
||||
|
||||
void Preferences::setNetworkInterfaceAddress(const QString& addr)
|
||||
{
|
||||
setValue("Preferences/Connection/InterfaceAddress", addr);
|
||||
}
|
||||
|
||||
QString Preferences::getNetworkInterfaceAddress() const
|
||||
{
|
||||
return value("Preferences/Connection/InterfaceAddress").toString();
|
||||
}
|
||||
|
||||
void Preferences::setNetworkInterfaceName(const QString& iface)
|
||||
{
|
||||
setValue("Preferences/Connection/InterfaceName", iface);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue