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
14.63k stars 1.7k forks source link

spotify pc 客户端 和 ios app 登录时提示地区检测错误 #303

Closed InnocenseYu closed 1 year ago

InnocenseYu commented 1 year ago

使用xray透明网关。spotify pc 客户端 和 ios app 登录时提示地区检测错误(之前同样配置可用),网页可正常登录播放,设置信息中地区显示为日本,ip 代理正常且使用日本。

photo_2023-06-17_18-05-20 photo_2023-06-17_18-21-53

猜想 geosite:spotify 匹配不全或者 DNS 解析问题

xray 配置信息如下:

{
    "log": {
        "loglevel": "warning"
    },

    "dns": {
        "hosts": {
            "domain:googleapis.cn": "googleapis.com",
            "dns.google": "8.8.8.8",
            "dns.pub": "119.29.29.29",
            "dns.alidns.com": "223.5.5.5",
            "geosite:category-ads-all": "127.0.0.1"
        },
        "servers": [
            {
                "address": "https://1.1.1.1/dns-query",
                "domains": [
                    "geosite:geolocation-!cn",
                    "geosite:google@cn"
                ],
                "expectIPs": [
                    "geoip:!cn"
                ],
                "skipFallback": false
            },
            {
                "address": "8.8.8.8",
                "port": 53,
                "skipFallback": false
            },
            {
                "address": "223.5.5.5",
                "port": 53,
                "domains": [
                    "geosite:cn",
                    "geosite:icloud",
                    "geosite:category-games@cn",
                    "ntp.org"
                ],
                "expectIPs": [
                    "geoip:cn"
                ],
                "skipFallback": true
            },
            {
                "address": "114.114.114.114",
                "port": 53,
                "domains": [
                    "geosite:cn",
                    "ntp.org"
                ],
                "skipFallback": true
            },
            {
                "address": "localhost",
                "skipFallback": true
            }
        ]
    },

    "inbounds": [
        {
            "tag": "all-in",
            "port": 23630,
            "protocol": "dokodemo-door",
            "settings": {
                "network": "tcp,udp",
                "followRedirect": true
            },
            "sniffing": {
                "enabled": true,
                "destOverride": [
                    "http",
                    "tls",
                    "quic"
                ]
            },
            "streamSettings": {
                "sockopt": {
                    "tproxy": "tproxy"
                }
            }
        }
    ],

    "routing": {
        "domainMatcher": "hybrid",
        "domainStrategy": "IPIfNonMatch",
        "rules": [
            {
                "type": "field",
                "protocol": [
                    "bittorrent"
                ],
                "outboundTag": "direct"
            },
            {
                "type": "field",
                "inboundTag": [
                    "all-in"
                ],
                "port": 123,
                "network": "udp",
                "outboundTag": "direct"
            },
            {
                "type": "field",
                "inboundTag": [
                    "all-in"
                ],
                "port": 53,
                "network": "udp",
                "outboundTag": "dns-out"
            },
            {
                "type": "field",
                "domain": "geosite:category-ads-all",
                "outboundTag": "block"
            },
            {
                "type": "field",
                "ip": [
                    "223.5.5.5",
                    "119.29.29.29",
                    "114.114.114.114"
                ],
                "outboundTag": "direct"
            },
            {
                "type": "field",
                "ip": [
                    "1.1.1.1",
                    "1.0.0.1",
                    "8.8.8.8",
                    "8.8.4.4"
                ],
                "outboundTag": "hk-out"
            },
            {
                "type": "field",
                "domain": [
                    "geosite:spotify"
                ],
                "outboundTag": "jp-out"
            },
            {
                "type": "field",
                "domain": [
                    "geosite:geolocation-!cn"
                ],
                "outboundTag": "hk-out"
            },
            {
                "type": "field",
                "domain": [
                    "geosite:tld-cn",
                    "geosite:category-games@cn"
                ],
                "outboundTag": "direct"
            },
            {
                "type": "field",
                "domain": [
                    "geosite:cn",
                    "geosite:private"
                ],
                "outboundTag": "direct"
            },
            {
                "type": "field",
                "ip": [
                    "geoip:cn", 
                    "geoip:private"
                ],
                "outboundTag": "direct"
            },
            {
                "type": "field",
                "network": "tcp,udp",
                "outboundTag": "hk-out"
            }
        ]
    },

    "outbounds": [
        {
            "tag": "hk-out",
        },
        {
            "tag": "jp-out",
        },
        {
            "tag": "dns-out",
            "protocol": "dns",
            "streamSettings": {
                "sockopt": {
                    "mark": 255
                }
            }
        },
        {
            "tag": "direct",
            "protocol": "freedom",
            "settings": {
                "domainStrategy": "UseIPv4"
            },
            "streamSettings": {
                "sockopt": {
                    "mark": 255
                }
            }
        },
        {
            "tag": "block",
            "protocol": "blackhole",
            "settings": {
                "response": {
                    "type": "http"
                }
            }
        }

    ]
}
Loyalsoldier commented 1 year ago

请到上游项目反馈 https://github.com/v2fly/domain-list-community