mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
FEATURE: IP address reported to trackers is now customizable
This commit is contained in:
@@ -846,6 +846,14 @@ public:
|
||||
return value(QString::fromUtf8("Preferences/Connection/Interface"), QString()).toString();
|
||||
}
|
||||
|
||||
void setNetworkAddress(const QString& addr) {
|
||||
setValue(QString::fromUtf8("Preferences/Connection/InetAddress"), addr);
|
||||
}
|
||||
|
||||
QString getNetworkAddress() const {
|
||||
return value(QString::fromUtf8("Preferences/Connection/InetAddress"), QString()).toString();
|
||||
}
|
||||
|
||||
#if LIBTORRENT_VERSION_MINOR > 14
|
||||
bool isSuperSeedingEnabled() const {
|
||||
return value(QString::fromUtf8("Preferences/Advanced/SuperSeeding"), false).toBool();
|
||||
|
||||
Reference in New Issue
Block a user