From 04fdd521ea6982e42d026e250d5060b73229876f Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 20 Dec 2008 05:00:55 +0000 Subject: [PATCH] Use the 'allow_remote' config option instead of always using False --- deluge/core/daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/core/daemon.py b/deluge/core/daemon.py index b7cedb6d4..a6b5bdd1b 100644 --- a/deluge/core/daemon.py +++ b/deluge/core/daemon.py @@ -82,7 +82,10 @@ class Daemon(object): # Start the core as a thread and join it until it's done self.core = Core() - self.rpcserver = RPCServer(options.port if options.port else self.core.config["daemon_port"]) + self.rpcserver = RPCServer( + options.port if options.port else self.core.config["daemon_port"], + self.core.config["allow_remote"] + ) self.rpcserver.register_object(self.core, "core") self.rpcserver.register_object(self, "daemon")