FEATURE: IP address reported to trackers is now customizable

This commit is contained in:
Christophe Dumez
2011-02-05 15:44:48 +00:00
parent 76d3e9033d
commit 4c7a5633da
4 changed files with 40 additions and 3 deletions

View File

@@ -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();