diff --git a/src/webui/api/synccontroller.cpp b/src/webui/api/synccontroller.cpp index 86b900893..e5b30785e 100644 --- a/src/webui/api/synccontroller.cpp +++ b/src/webui/api/synccontroller.cpp @@ -550,7 +550,7 @@ void SyncController::torrentPeersAction() peer[KEY_PEER_COUNTRY] = Net::GeoIPManager::CountryName(pi.country()); } - peers[pi.address().ip.toString() + ':' + QString::number(pi.address().port)] = peer; + peers[pi.address().toString()] = peer; } data["peers"] = peers; diff --git a/src/webui/www/private/views/preferences.html b/src/webui/www/private/views/preferences.html index edbb642d5..696eea33e 100644 --- a/src/webui/www/private/views/preferences.html +++ b/src/webui/www/private/views/preferences.html @@ -356,11 +356,11 @@
- - +
- + +
@@ -1423,10 +1423,8 @@ }; const updateFilterSettings = function() { - const isIPFilterEnabled = $('ipfilter_enabled_checkbox').getProperty('checked'); + const isIPFilterEnabled = $('ipfilter_text_checkbox').getProperty('checked'); $('ipfilter_text').setProperty('disabled', !isIPFilterEnabled); - $('ipfilter_trackers_checkbox').setProperty('disabled', !isIPFilterEnabled); - $('banned_IPs_textarea').setProperty('disabled', !isIPFilterEnabled); }; // Speed tab @@ -1736,7 +1734,7 @@ $('peer_proxy_password_text').setProperty('value', pref.proxy_password); // IP Filtering - $('ipfilter_enabled_checkbox').setProperty('checked', pref.ip_filter_enabled); + $('ipfilter_text_checkbox').setProperty('checked', pref.ip_filter_enabled); $('ipfilter_text').setProperty('value', pref.ip_filter_path); $('ipfilter_trackers_checkbox').setProperty('checked', pref.ip_filter_trackers); $('banned_IPs_textarea').setProperty('value', pref.banned_IPs); @@ -2050,7 +2048,7 @@ settings.set('proxy_password', $('peer_proxy_password_text').getProperty('value')); // IP Filtering - settings.set('ip_filter_enabled', $('ipfilter_enabled_checkbox').getProperty('checked')); + settings.set('ip_filter_enabled', $('ipfilter_text_checkbox').getProperty('checked')); settings.set('ip_filter_path', $('ipfilter_text').getProperty('value')); settings.set('ip_filter_trackers', $('ipfilter_trackers_checkbox').getProperty('checked')); settings.set('banned_IPs', $('banned_IPs_textarea').getProperty('value'));