Loyalsoldier / v2ray-rules-dat

🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,适用于 V2Ray、Xray-core、mihomo(Clash-Meta)、hysteria、Trojan-Go 和 leaf。Enhanced edition of V2Ray rules dat files, applicable to V2Ray, Xray-core, mihomo(Clash-Meta), hysteria, Trojan-Go and leaf.
GNU General Public License v3.0
15.27k stars 1.86k forks source link

geosite:apple 是否在 geosite:geolocation-!cn 里面? #203

Closed GeorgeRudd closed 2 years ago

GeorgeRudd commented 2 years ago

客户端配置

    "routing": {
        "domainStrategy": "IPIfNonMatch",
        "domainMatcher": "mph",
        "rules": [
            {
                "type": "field",
                "outboundTag": "proxy",
                "domains": [
                    "geosite:geolocation-!cn"
                ]
            },
            {
                "outboundTag": "direct",
                "type": "field",
                "domains": [
                    "geosite:cn"
                ]
            },
            {
                "outboundTag": "direct",
                "type": "field",
                "ip": [
                    "geoip:cn",
                    "geoip:private"
                ]
            }
        ]
    }

访问apple.com.cn是直连 accepted tcp:www.apple.com.cn:443 [socks -> direct] 访问apple.com走代理 accepted tcp:www.apple.com:443 [socks -> proxy]

这里 说apple类别在geosite:geolocation-!cn 里面,那访问apple.com.cn应该也走代理才对啊

Loyalsoldier commented 2 years ago

在。V2RayN 等客户端的规则优先级可能会有一些问题。

GeorgeRudd commented 2 years ago

你好 我刚刚试了 https://github.com/XTLS/Xray-core/releaseshttps://github.com/v2fly/v2ray-core/releases 里面的geo文件 同样配置下 apple.com.cn 都是走代理的 [Info] app/dispatcher: sniffed domain: apple.com.cn [Info] app/dispatcher: taking detour [proxy] for [tcp:apple.com.cn:443]