mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
[#2472] Add support for anonymous_mode
This commit is contained in:
parent
2a50159978
commit
184d6be98d
2 changed files with 6 additions and 1 deletions
|
@ -126,6 +126,7 @@ DEFAULT_PREFS = {
|
||||||
"random_outgoing_ports": True,
|
"random_outgoing_ports": True,
|
||||||
"peer_tos": "0x00",
|
"peer_tos": "0x00",
|
||||||
"rate_limit_ip_overhead": True,
|
"rate_limit_ip_overhead": True,
|
||||||
|
"anonymous_mode": False,
|
||||||
"geoip_db_location": "/usr/share/GeoIP/GeoIP.dat",
|
"geoip_db_location": "/usr/share/GeoIP/GeoIP.dat",
|
||||||
"cache_size": 512,
|
"cache_size": 512,
|
||||||
"cache_expiry": 60,
|
"cache_expiry": 60,
|
||||||
|
@ -439,6 +440,10 @@ class PreferencesManager(component.Component):
|
||||||
log.debug("%s: %s", key, value)
|
log.debug("%s: %s", key, value)
|
||||||
self.session_set_setting("rate_limit_ip_overhead", value)
|
self.session_set_setting("rate_limit_ip_overhead", value)
|
||||||
|
|
||||||
|
def _on_set_anonymous_mode(self, key, value):
|
||||||
|
log.debug("%s: %s", key, value)
|
||||||
|
self.session_set_setting("anonymous_mode", value)
|
||||||
|
|
||||||
def _on_set_geoip_db_location(self, key, value):
|
def _on_set_geoip_db_location(self, key, value):
|
||||||
log.debug("%s: %s", key, value)
|
log.debug("%s: %s", key, value)
|
||||||
# Load the GeoIP DB for country look-ups if available
|
# Load the GeoIP DB for country look-ups if available
|
||||||
|
|
|
@ -435,11 +435,11 @@ class ProxyPane(BasePane):
|
||||||
self.add_checked_input("proxy_hostnames", "Proxy hostnames", proxy["proxy_hostnames"])
|
self.add_checked_input("proxy_hostnames", "Proxy hostnames", proxy["proxy_hostnames"])
|
||||||
self.add_checked_input("proxy_peer_connections", "Proxy peer connections", proxy["proxy_peer_connections"])
|
self.add_checked_input("proxy_peer_connections", "Proxy peer connections", proxy["proxy_peer_connections"])
|
||||||
|
|
||||||
|
|
||||||
self.add_header("I2P Proxy",True)
|
self.add_header("I2P Proxy",True)
|
||||||
i2p_proxy = parent.core_config["i2p_proxy"]
|
i2p_proxy = parent.core_config["i2p_proxy"]
|
||||||
self.add_text_input("i2p_hostname", "Hostname:", i2p_proxy["hostname"])
|
self.add_text_input("i2p_hostname", "Hostname:", i2p_proxy["hostname"])
|
||||||
self.add_int_spin_input("i2p_port", "Port:", i2p_proxy["port"], 0, 65535)
|
self.add_int_spin_input("i2p_port", "Port:", i2p_proxy["port"], 0, 65535)
|
||||||
|
self.add_checked_input("anonymous_mode", "Anonymous Mode", parent.core_config["anonymous_mode"])
|
||||||
|
|
||||||
|
|
||||||
class CachePane(BasePane):
|
class CachePane(BasePane):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue