From 706d53ab4adbb1886992e569909ff3091a59507a Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 18 Jan 2017 14:31:55 +0000 Subject: [PATCH] [Core] Move readonly key setting closer to config init --- deluge/core/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deluge/core/core.py b/deluge/core/core.py index 3a942fcf6..90b58ba78 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -137,6 +137,11 @@ class Core(component.Component): # GeoIP instance with db loaded self.geoip_instance = None + # These keys will be dropped from the set_config() RPC and are + # configurable from the command-line. + self.read_only_config_keys = read_only_config_keys + log.debug('read_only_config_keys: %s', read_only_config_keys) + # Get the core config self.config = ConfigManager('core.conf') self.config.save()