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

我在设置--自定义路由,写了一条规则,但是它没有生效 I wrote a rule in Settings - Custom Routing, but it didn't take effect #1413

Open
w254547764 opened this issue Aug 27, 2024 · 3 comments

Comments

@w254547764
Copy link

{
"route": {
"rules": [
{
"domain": ["whatismyipaddress.com"],
"outbound": "direct"
}
]
}
}

系统是:Windwows 11

@w254547764
Copy link
Author

无标题

@yaoleiliu
Copy link

无标题

me too.have you solved it?

@Dev-Mohamed-Ali
Copy link

Sing-box Routing Configuration

This configuration works for Sing-box:

  1. Go to Preferences -> Routing Settings -> Simple Route -> Custom Route.
  2. Copy the configuration below and modify it as needed using domain_keyword, domain, or process_name for further customization.
{
    "rules": [
        {
            "domain_keyword": [
                "chatgpt",
                "openai"
            ],
            "outbound": "direct"
        },
        {
            "domain": [
                "fast.com"
            ],
            "outbound": "direct"
        },
        {
            "outbound": "direct",
            "process_name": [
                "cod.exe",
                "GenshinImpact.exe",
                "zen.exe"
            ]
        }
    ]
}

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

3 participants