From 4fb27a466cb44e0e74f0a595a9f597c3e558f417 Mon Sep 17 00:00:00 2001 From: Iam54r1n4 Date: Sun, 9 Feb 2025 09:45:21 +0000 Subject: [PATCH] Hotfix: Restart hysteria-server.service after updating config file through API --- core/scripts/webpanel/routers/api/v1/config/hysteria.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/scripts/webpanel/routers/api/v1/config/hysteria.py b/core/scripts/webpanel/routers/api/v1/config/hysteria.py index 3294df3..2d05c38 100644 --- a/core/scripts/webpanel/routers/api/v1/config/hysteria.py +++ b/core/scripts/webpanel/routers/api/v1/config/hysteria.py @@ -236,6 +236,7 @@ async def set_file(body: ConfigFile): """ try: cli_api.set_hysteria2_config_file(body.root) + cli_api.restart_hysteria2() return DetailResponse(detail='Hysteria2 configuration file updated successfully.') except Exception as e: raise HTTPException(status_code=400, detail=f'Error: {str(e)}')