sing-box-examples icon indicating copy to clipboard operation
sing-box-examples copied to clipboard

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

Open choicky opened this issue 1 year ago • 1 comments

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" 重复了呢?

choicky avatar Dec 18 '24 15:12 choicky

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

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

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

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

chika0801 avatar Dec 19 '24 10:12 chika0801