MatsuriDayo / nekoray

Qt based cross-platform GUI proxy configuration manager (backend: sing-box)
https://matsuridayo.github.io/
GNU General Public License v3.0
13.32k stars 1.25k forks source link

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

Open w254547764 opened 2 months ago

w254547764 commented 2 months ago

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

系统是:Windwows 11

w254547764 commented 2 months ago

无标题

yaole-A commented 1 month ago

无标题

me too.have you solved it?

Dev-Mohamed-Ali commented 1 month ago

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"
            ]
        }
    ]
}