diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-12-19 05:52:33 +0100 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-12-19 05:52:33 +0100 |
commit | 5ee1a6ddf8cd550e58224817f306d4ddebd1512e (patch) | |
tree | caebb80e052bc17d8cab5bd44706bad85eecef0a | |
parent | [ClickNLoad] fix #2198 (diff) | |
download | pyload-5ee1a6ddf8cd550e58224817f306d4ddebd1512e.tar.xz |
[ClickNLoad] Small bug fix
-rw-r--r-- | module/plugins/hooks/ClickNLoad.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hooks/ClickNLoad.py b/module/plugins/hooks/ClickNLoad.py index be8cb5ae0..79bf66c09 100644 --- a/module/plugins/hooks/ClickNLoad.py +++ b/module/plugins/hooks/ClickNLoad.py @@ -27,7 +27,7 @@ def forward(source, destination): class ClickNLoad(Addon): __name__ = "ClickNLoad" __type__ = "hook" - __version__ = "0.50" + __version__ = "0.51" __status__ = "testing" __config__ = [("activated", "bool" , "Activated" , True ), @@ -48,7 +48,8 @@ class ClickNLoad(Addon): cnlip = "" if self.get_config('extern') else "127.0.0.1" cnlport = self.get_config('port') - webip = self.pyload.config.get("webinterface", "host") or "127.0.0.1" + webip = "127.0.0.1" if any(_ip == self.pyload.config.get("webinterface", "host") for _ip in ("0.0.0.0", "")) \ + else self.pyload.config.get("webinterface", "host") webport = self.pyload.config.get("webinterface", "port") self.pyload.scheduler.addJob(5, self.proxy, [cnlip, cnlport, webip, webport], threaded=False) |