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