diff --git a/deluge/ui/gtkui/glade/preferences_dialog.ui b/deluge/ui/gtkui/glade/preferences_dialog.ui index 376876a4e..45ad49b4f 100644 --- a/deluge/ui/gtkui/glade/preferences_dialog.ui +++ b/deluge/ui/gtkui/glade/preferences_dialog.ui @@ -35,14 +35,14 @@ 1 10 - - -1 - 9999 + + 65535 1 10 - - 65535 + + -1 + 9999 1 10 @@ -3802,6 +3802,50 @@ the proxy instead of using the local DNS service 1 + + + True + False + 0 + none + + + True + False + 5 + 12 + 12 + + + Hide Client Identity + False + True + True + False + Attempt to hide client identity and only use proxy for incoming connections. + True + + + + + + + True + False + Anonymous Mode + + + + + + + + False + False + 5 + 2 + + diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py index 40f8baed4..6ace51acd 100644 --- a/deluge/ui/gtkui/preferences.py +++ b/deluge/ui/gtkui/preferences.py @@ -399,6 +399,7 @@ class Preferences(component.Component): "spin_max_connections_per_second": ("value", "max_connections_per_second"), "chk_ignore_limits_on_local_network": ("active", "ignore_limits_on_local_network"), "chk_rate_limit_ip_overhead": ("active", "rate_limit_ip_overhead"), + "chk_anonymous_mode": ("active", "anonymous_mode"), "spin_max_connections_per_torrent": ("value", "max_connections_per_torrent"), "spin_max_upload_slots_per_torrent": ("value", "max_upload_slots_per_torrent"), "spin_max_download_per_torrent": ("value", "max_download_speed_per_torrent"), @@ -706,6 +707,7 @@ class Preferences(component.Component): new_core_config["i2p_proxy"] = {} new_core_config["i2p_proxy"]["hostname"] = self.builder.get_object("entry_i2p_host").get_text() new_core_config["i2p_proxy"]["port"] = self.builder.get_object("spin_i2p_port").get_value_as_int() + new_core_config["anonymous_mode"] = self.builder.get_object("chk_anonymous_mode").get_active() ## Queue tab ## new_core_config["queue_new_to_top"] = \ diff --git a/deluge/ui/web/js/deluge-all/preferences/ProxyPage.js b/deluge/ui/web/js/deluge-all/preferences/ProxyPage.js index afb3a4d72..e1a738642 100644 --- a/deluge/ui/web/js/deluge-all/preferences/ProxyPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/ProxyPage.js @@ -60,6 +60,23 @@ Deluge.preferences.Proxy = Ext.extend(Ext.form.FormPanel, { name: 'i2p_proxy' })); deluge.preferences.getOptionsManager().bind('i2p_proxy', this.i2p_proxy); + + var fieldset = this.add({ + xtype: 'fieldset', + border: false, + title: _('Anonymous Mode'), + autoHeight: true, + labelWidth: 1, + defaultType: 'checkbox' + }); + deluge.preferences.getOptionsManager().bind('anonymous_mode', fieldset.add({ + fieldLabel: '', + labelSeparator: '', + height: 20, + name: 'anonymous_mode', + boxLabel: _('Hide Client Identity') + })); + }, getValue: function() {