mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07: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:
parent
3762c37517
commit
5962ef79cb
8 changed files with 81 additions and 15 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue