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

"geosite-geolocation-!cn" 与 final 的设置是否重复了? #131

Open
choicky opened this issue Dec 18, 2024 · 1 comment
Open

"geosite-geolocation-!cn" 与 final 的设置是否重复了? #131

choicky opened this issue Dec 18, 2024 · 1 comment

Comments

@choicky
Copy link

choicky commented Dec 18, 2024

route 模块中,设置了 "final": "proxy",同时,也做了如下设置:

            {
                "rule_set": "geosite-geolocation-!cn",
                "outbound": "proxy"
            },
            {
                "rule_set": "geoip-cn",
                "outbound": "direct"
            }

其中的

{
                "rule_set": "geosite-geolocation-!cn",
                "outbound": "proxy"
            }

是否与 "final": "proxy" 重复了呢?

@chika0801
Copy link
Owner

你的 "final": "proxy" 参数指定了最终是到proxy。

在前面部分,它是从上到下匹配的逻辑,根据你自己的一些要求来看

            {
                "rule_set": "geosite-geolocation-!cn",
                "outbound": "proxy"
            },

这条要不要在前面先匹配到proxy去。就看你自己理一下你路由部分的规则 ,从上到下,逻辑上的先后顺序,你有不有什么特殊的要求了。如果重复了,你自己知道就是了。

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