From 665557bd1ffe5f2313c44668995c46657ac0beee Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Thu, 4 Jun 2026 23:47:38 +0200 Subject: [PATCH] fix --- frontend/public/openapi.json | 2 +- sub/sub.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/public/openapi.json b/frontend/public/openapi.json index e926b679..1beb1632 100644 --- a/frontend/public/openapi.json +++ b/frontend/public/openapi.json @@ -5791,7 +5791,7 @@ "tags": [ "Subscription Server" ], - "summary": "Return subscription as a Clash/Mihomo-compatible YAML config. Only when Clash subscription is enabled in settings. Default path: /clash/:subid.", + "summary": "Return subscription as a Clash/Mihomo-compatible YAML config, including configured global Clash routing rules. Only when Clash subscription is enabled in settings. Default path: /clash/:subid.", "operationId": "get_clashPath_subid", "parameters": [ { diff --git a/sub/sub.go b/sub/sub.go index 76d0e4dc..a97943d5 100644 --- a/sub/sub.go +++ b/sub/sub.go @@ -133,6 +133,8 @@ func (s *Server) initRouter() (*gin.Engine, error) { SubJsonFinalMask, err := s.settingService.GetSubJsonFinalMask() if err != nil { SubJsonFinalMask = "" + } + SubClashEnableRouting, err := s.settingService.GetSubClashEnableRouting() if err != nil { SubClashEnableRouting = false @@ -229,7 +231,7 @@ func (s *Server) initRouter() (*gin.Engine, error) { s.sub = NewSUBController( g, LinksPath, JsonPath, ClashPath, subJsonEnable, subClashEnable, Encrypt, ShowInfo, RemarkModel, SubUpdates, - SubJsonMux, SubJsonRules, SubJsonFinalMask,SubClashEnableRouting, SubClashRules, SubTitle, SubSupportUrl, + SubJsonMux, SubJsonRules, SubJsonFinalMask, SubClashEnableRouting, SubClashRules, SubTitle, SubSupportUrl, SubProfileUrl, SubAnnounce, SubEnableRouting, SubRoutingRules) return engine, nil