mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Update proxy settings in Web UI
This commit is contained in:
parent
b48b9479d2
commit
b59dded2a4
3 changed files with 16 additions and 1 deletions
|
|
@ -234,6 +234,8 @@ void EventManager::setGlobalPreferences(QVariantMap m) const {
|
|||
pref.setProxyIp(m["proxy_ip"].toString());
|
||||
if(m.contains("proxy_port"))
|
||||
pref.setProxyPort(m["proxy_port"].toUInt());
|
||||
if(m.contains("proxy_peer_connections"))
|
||||
pref.setProxyPeerConnections(m["proxy_peer_connections"].toBool());
|
||||
if(m.contains("proxy_auth_enabled"))
|
||||
pref.setProxyAuthEnabled(m["proxy_auth_enabled"].toBool());
|
||||
if(m.contains("proxy_username"))
|
||||
|
|
@ -305,6 +307,7 @@ QVariantMap EventManager::getGlobalPreferences() const {
|
|||
data["proxy_type"] = pref.getProxyType();
|
||||
data["proxy_ip"] = pref.getProxyIp();
|
||||
data["proxy_port"] = pref.getProxyPort();
|
||||
data["proxy_peer_connections"] = pref.proxyPeerConnections();
|
||||
data["proxy_auth_enabled"] = pref.isProxyAuthEnabled();
|
||||
data["proxy_username"] = pref.getProxyUsername();
|
||||
data["proxy_password"] = pref.getProxyPassword();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue