From 3374b5f50cff6a89cb8a1abd07a8d3a773ada979 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 22 Jun 2007 09:20:44 +0000 Subject: [PATCH] Do not start DHT Proxy if DHT is not started --- src/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core.py b/src/core.py index 0e91b2eb5..d31e70a12 100644 --- a/src/core.py +++ b/src/core.py @@ -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):