Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否不新加而是替换同 tag 的 selector #39

Open
love4taylor opened this issue Apr 12, 2024 · 1 comment
Open

能否不新加而是替换同 tag 的 selector #39

love4taylor opened this issue Apr 12, 2024 · 1 comment

Comments

@love4taylor
Copy link

love4taylor commented Apr 12, 2024

没有打开禁用默认生成的 urltest 和 selector 且模版存在

    {
      "type": "selector",
      "tag": "select",
      "outbounds": [
        "exclude: (Traffic Reset|Expire Date|GB |直连|回国)"
      ]
    },

但转出来就是同时存在两个 tag 为 select 的 selector,这样就会无法启动

    "outbounds": [
        {
            "tag": "select",
            "type": "selector",
            "default": "urltest",
            "outbounds": [
                "urltest",
                "a",
                "b"
            ]
        },
        {
            "tag": "urltest",
            "type": "urltest",
            "outbounds": [
                "a",
                "b"
            ]
        },
        {
            "outbounds": [
                "a",
                "b"
            ],
            "tag": "select",
            "type": "selector"
        },

虽然直接禁止生成默认可以避免但是还是会有用同一个模版但有些订阅需要 urltest 的

@xmdhs
Copy link
Owner

xmdhs commented Apr 13, 2024

你可以更换 selector 的 tag 名,或者开启禁用默认生成的 urltest 和 selector 然后模板中添加

   {
            "tag": "urltest",
            "type": "urltest",
            "outbounds": [
                "include: .*"
            ]
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants