mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 12:44:22 +00:00
fix
This commit is contained in:
parent
d8e9d9bb64
commit
665557bd1f
2 changed files with 4 additions and 2 deletions
|
|
@ -5791,7 +5791,7 @@
|
||||||
"tags": [
|
"tags": [
|
||||||
"Subscription Server"
|
"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",
|
"operationId": "get_clashPath_subid",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,8 @@ func (s *Server) initRouter() (*gin.Engine, error) {
|
||||||
SubJsonFinalMask, err := s.settingService.GetSubJsonFinalMask()
|
SubJsonFinalMask, err := s.settingService.GetSubJsonFinalMask()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
SubJsonFinalMask = ""
|
SubJsonFinalMask = ""
|
||||||
|
}
|
||||||
|
|
||||||
SubClashEnableRouting, err := s.settingService.GetSubClashEnableRouting()
|
SubClashEnableRouting, err := s.settingService.GetSubClashEnableRouting()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
SubClashEnableRouting = false
|
SubClashEnableRouting = false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue