Remove SingBox Service Status

This commit is contained in:
Whispering Wind
2025-04-11 21:57:40 +03:30
committed by GitHub
parent 13f3fd9273
commit 10dc20ad8e
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ class ServerServicesStatusResponse(BaseModel):
hysteria_server: bool hysteria_server: bool
hysteria_webpanel: bool hysteria_webpanel: bool
hysteria_iplimit: bool hysteria_iplimit: bool
hysteria_singbox: bool # hysteria_singbox: bool
hysteria_normal_sub: bool hysteria_normal_sub: bool
hysteria_telegram_bot: bool hysteria_telegram_bot: bool
hysteria_warp: bool hysteria_warp: bool

View File

@ -141,8 +141,8 @@ def __parse_services_status(services_status: dict[str, bool]) -> ServerServicesS
parsed_services_status['hysteria_telegram_bot'] = status parsed_services_status['hysteria_telegram_bot'] = status
elif 'hysteria-normal-sub' in service: elif 'hysteria-normal-sub' in service:
parsed_services_status['hysteria_normal_sub'] = status parsed_services_status['hysteria_normal_sub'] = status
elif 'hysteria-singbox' in service: # elif 'hysteria-singbox' in service:
parsed_services_status['hysteria_singbox'] = status # parsed_services_status['hysteria_singbox'] = status
elif 'wg-quick' in service: elif 'wg-quick' in service:
parsed_services_status['hysteria_warp'] = status parsed_services_status['hysteria_warp'] = status
return ServerServicesStatusResponse(**parsed_services_status) return ServerServicesStatusResponse(**parsed_services_status)