diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index 363045713..a95b741f9 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -670,6 +670,13 @@ class WebApi(JSONComponent): d.addErrback(on_connect_failed, host_id) return main_deferred + @export + def start_daemon(self, port): + """ + Starts a local daemon. + """ + client.start_daemon(port, deluge.configmanager.get_config_dir()) + @export def stop_daemon(self, host_id): """