From 10dc20ad8ee8acfb1f32da8f7dd2441c90d75292 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Fri, 11 Apr 2025 21:57:40 +0330 Subject: [PATCH] Remove SingBox Service Status --- core/scripts/webpanel/routers/api/v1/schema/server.py | 2 +- core/scripts/webpanel/routers/api/v1/server.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/scripts/webpanel/routers/api/v1/schema/server.py b/core/scripts/webpanel/routers/api/v1/schema/server.py index 33ea6dd..bb3ba4b 100644 --- a/core/scripts/webpanel/routers/api/v1/schema/server.py +++ b/core/scripts/webpanel/routers/api/v1/schema/server.py @@ -20,7 +20,7 @@ class ServerServicesStatusResponse(BaseModel): hysteria_server: bool hysteria_webpanel: bool hysteria_iplimit: bool - hysteria_singbox: bool + # hysteria_singbox: bool hysteria_normal_sub: bool hysteria_telegram_bot: bool hysteria_warp: bool diff --git a/core/scripts/webpanel/routers/api/v1/server.py b/core/scripts/webpanel/routers/api/v1/server.py index 543ff61..5de4753 100644 --- a/core/scripts/webpanel/routers/api/v1/server.py +++ b/core/scripts/webpanel/routers/api/v1/server.py @@ -141,8 +141,8 @@ def __parse_services_status(services_status: dict[str, bool]) -> ServerServicesS parsed_services_status['hysteria_telegram_bot'] = status elif 'hysteria-normal-sub' in service: parsed_services_status['hysteria_normal_sub'] = status - elif 'hysteria-singbox' in service: - parsed_services_status['hysteria_singbox'] = status + # elif 'hysteria-singbox' in service: + # parsed_services_status['hysteria_singbox'] = status elif 'wg-quick' in service: parsed_services_status['hysteria_warp'] = status return ServerServicesStatusResponse(**parsed_services_status)