mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
Expand the scope of "Proxy hostname lookup" option
This commit is contained in:
parent
6ac14d0c57
commit
96da685e5d
11 changed files with 57 additions and 61 deletions
|
@ -200,10 +200,10 @@ void AppController::preferencesAction()
|
|||
data[u"proxy_auth_enabled"_qs] = proxyConf.authEnabled;
|
||||
data[u"proxy_username"_qs] = proxyConf.username;
|
||||
data[u"proxy_password"_qs] = proxyConf.password;
|
||||
data[u"proxy_hostname_lookup"_qs] = proxyConf.hostnameLookupEnabled;
|
||||
|
||||
data[u"proxy_bittorrent"_qs] = pref->useProxyForBT();
|
||||
data[u"proxy_peer_connections"_qs] = session->isProxyPeerConnectionsEnabled();
|
||||
data[u"proxy_hostname_lookup"_qs] = session->isProxyHostnameLookupEnabled();
|
||||
data[u"proxy_rss"_qs] = pref->useProxyForRSS();
|
||||
data[u"proxy_misc"_qs] = pref->useProxyForGeneralPurposes();
|
||||
|
||||
|
@ -623,14 +623,14 @@ void AppController::setPreferencesAction()
|
|||
proxyConf.username = it.value().toString();
|
||||
if (hasKey(u"proxy_password"_qs))
|
||||
proxyConf.password = it.value().toString();
|
||||
if (hasKey(u"proxy_hostname_lookup"_qs))
|
||||
proxyConf.hostnameLookupEnabled = it.value().toBool();
|
||||
proxyManager->setProxyConfiguration(proxyConf);
|
||||
|
||||
if (hasKey(u"proxy_bittorrent"_qs))
|
||||
pref->setUseProxyForBT(it.value().toBool());
|
||||
if (hasKey(u"proxy_peer_connections"_qs))
|
||||
session->setProxyPeerConnectionsEnabled(it.value().toBool());
|
||||
if (hasKey(u"proxy_hostname_lookup"_qs))
|
||||
session->setProxyHostnameLookupEnabled(it.value().toBool());
|
||||
if (hasKey(u"proxy_rss"_qs))
|
||||
pref->setUseProxyForRSS(it.value().toBool());
|
||||
if (hasKey(u"proxy_misc"_qs))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue