mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Added option to disable peer host name resolution (disabled as a default)
- Fix several other bugs related to properties and preferences
This commit is contained in:
@@ -187,6 +187,16 @@ public:
|
||||
return settings.value(QString::fromUtf8("Preferences/Connection/GlobalUPLimit"), -1).toInt();
|
||||
}
|
||||
|
||||
static bool resolvePeerCountries() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/Connection/ResolvePeerCountries"), false).toBool();
|
||||
}
|
||||
|
||||
static bool resolvePeerHostNames() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/Connection/ResolvePeerHostNames"), false).toBool();
|
||||
}
|
||||
|
||||
// Proxy options
|
||||
static bool isHTTPProxyEnabled() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
|
||||
Reference in New Issue
Block a user