xmdhs / clash2sfa

将 Clash.Meta 格式的订阅链接转换为 sing-box 格式的订阅,用于 SFA
https://clash2sfa.xmdhs.com
MIT License
478 stars 92 forks source link

在已有 dns-out tag 的情况下重复且被错误添加到 selector 里 #37

Closed love4taylor closed 7 months ago

love4taylor commented 7 months ago

template:

  "outbounds": [
    {
      "type": "selector",
      "tag": "proxy",
      "outbounds": [
        "exclude: (Traffic Reset|Expire Date|GB |直连|回国)"
      ]
    },
    {
      "type": "selector",
      "tag": "paypal us",
      "outbounds": [
        "include: (United States|US)",
        "proxy"
      ]
    },
    {
      "type": "dns",
      "tag": "dns-out"
    }
  ],

output:

        },
        {
            "tag": "direct",
            "type": "direct"
        },
        {
            "tag": "block",
            "type": "block"
        },
        {
            "tag": "dns-out",
            "type": "dns"
        },
        {
            "outbounds": [
                "1111",
                "222",
                "dns-out"
            ],
            "tag": "proxy",
            "type": "selector"
        },
        {
            "outbounds": [
                "proxy"
            ],
            "tag": "paypal us",
            "type": "selector"
        },
        {
            "tag": "dns-out",
            "type": "dns"
        }
    ],

最终无法启动

SCR-20240411-bwqs
xmdhs commented 7 months ago

试试现在这个版本的