Do not start DHT Proxy if DHT is not started

This commit is contained in:
Andrew Resch 2007-06-22 09:20:44 +00:00
parent 93a0945915
commit 3374b5f50c
1 changed files with 2 additions and 0 deletions

View File

@ -800,6 +800,8 @@ class Manager:
return deluge_core.add_range_to_IP_filter(start, end)
def proxy_settings(self, server, login, paswd, portnum, proxytype, peerproxy, trackerproxy, dhtproxy):
if self.dht_running == False:
dhtproxy = False
return deluge_core.proxy_settings(server, login, paswd, portnum, proxytype, peerproxy, trackerproxy, dhtproxy)
def pe_settings(self, out_enc_policy, in_enc_policy, allowed_enc_level, prefer_rc4):