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,6 +162,9 @@ class JSON(resource.Resource, component.Component):
|
||||
# Sort out getting the default daemon here
|
||||
default = component.get("DelugeWeb").config["default_daemon"]
|
||||
host = component.get("Web").get_host(default)
|
||||
if host:
|
||||
self.connect(*host[1:])
|
||||
else:
|
||||
self.connect()
|
||||
|
||||
def _on_client_disconnect(self, *args):
|
||||
|
Loading…
x
Reference in New Issue
Block a user