mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
The user can force listening on a particular network interface
This commit is contained in:
@@ -929,6 +929,16 @@ public:
|
||||
settings.setValue(QString::fromUtf8("Preferences/Connection/MaxHalfOpenConnec"), value);
|
||||
}
|
||||
|
||||
static void setNetworkInterface(QString iface) {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
settings.setValue(QString::fromUtf8("Preferences/Connection/Interface"), iface);
|
||||
}
|
||||
|
||||
static QString getNetworkInterface() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/Connection/Interface"), QString()).toString();
|
||||
}
|
||||
|
||||
#ifdef LIBTORRENT_0_15
|
||||
static bool isSuperSeedingEnabled() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
|
||||
Reference in New Issue
Block a user