mirror of
https://github.com/codex-storage/deluge.git
synced 2025-03-01 03:20:44 +00:00
Fix autoconnecting to the default host
This commit is contained in:
parent
8e7432e71c
commit
6422f11971
@ -162,7 +162,10 @@ class JSON(resource.Resource, component.Component):
|
|||||||
# Sort out getting the default daemon here
|
# Sort out getting the default daemon here
|
||||||
default = component.get("DelugeWeb").config["default_daemon"]
|
default = component.get("DelugeWeb").config["default_daemon"]
|
||||||
host = component.get("Web").get_host(default)
|
host = component.get("Web").get_host(default)
|
||||||
self.connect()
|
if host:
|
||||||
|
self.connect(*host[1:])
|
||||||
|
else:
|
||||||
|
self.connect()
|
||||||
|
|
||||||
def _on_client_disconnect(self, *args):
|
def _on_client_disconnect(self, *args):
|
||||||
component.get("Web.PluginManager").stop()
|
component.get("Web.PluginManager").stop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user