From 0f91dcb371334286b43fafffc5e4f605bd184f9d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 28 Dec 2010 00:17:15 +0100 Subject: working speedlimit + proxy support, closed #197 --- pyLoadCore.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index dfbb2f51d..3349a7393 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -603,7 +603,12 @@ class ServerMethods(): def set_conf_val(self, cat, opt, val, sec="core"): """ set config value """ if sec == "core": - self.core.config[str(cat)][str(opt)] = val + opt = str(opt) + self.core.config[str(cat)][opt] = val + + if opt in ("limit_speed", "max_speed"): #not so nice to update the limit + self.core.requestFactory.updateBucket() + elif sec == "plugin": self.core.config.setPlugin(cat, opt, val) -- cgit v1.2.3