diff --git a/src/webui/api/appcontroller.cpp b/src/webui/api/appcontroller.cpp
index 2b3035c61..26122ebcd 100644
--- a/src/webui/api/appcontroller.cpp
+++ b/src/webui/api/appcontroller.cpp
@@ -134,6 +134,7 @@ void AppController::preferencesAction()
data["proxy_peer_connections"] = session->isProxyPeerConnectionsEnabled();
data["force_proxy"] = session->isForceProxyEnabled();
+ data["proxy_torrents_only"] = proxyManager->isProxyOnlyForTorrents();
// IP Filtering
data["ip_filter_enabled"] = session->isIPFilteringEnabled();
@@ -344,6 +345,8 @@ void AppController::setPreferencesAction()
session->setProxyPeerConnectionsEnabled(m["proxy_peer_connections"].toBool());
if (m.contains("force_proxy"))
session->setForceProxyEnabled(m["force_proxy"].toBool());
+ if (m.contains("proxy_torrents_only"))
+ proxyManager->setProxyOnlyForTorrents(m["proxy_torrents_only"].toBool());
// IP Filtering
if (m.contains("ip_filter_enabled"))
diff --git a/src/webui/www/private/preferences_content.html b/src/webui/www/private/preferences_content.html
index 7290bb5bf..0af671376 100644
--- a/src/webui/www/private/preferences_content.html
+++ b/src/webui/www/private/preferences_content.html
@@ -165,6 +165,10 @@
+
+
+
+