eycorsican / kitsunebi-android

A fully-featured V2Ray client for Android.
MIT License
1.76k stars 315 forks source link

出口不会走IPv6 #96

Closed smaxad47 closed 5 years ago

smaxad47 commented 5 years ago

你正在使用哪个版本?

1.7.2

你的手机型号和手机操作系统版本是多少?

essentialPhone android9

你遇到了什么问题?

服务端出口配置了"domainStrategy": "UseIPv6" 电脑端使用V2ray4.20.0 访问https://www.google.com/sorry/index,得到的是IPv6地址,但手机端上一样的配置,获取到的是IPv4。 我机房IPv4地址被谷歌拉入黑名单了,所以得走IPv6的。

你遇到的问题可以用固定步骤重现吗?

访问https://www.google.com/sorry/index

你正使用的配置


{
    "dns":{
        "servers": [
            "8.8.8.8",
            "8.8.4.4",
            "119.29.29.29",
            {
                "address": "119.29.29.29",
                "port": 53,
                "domains": [
                    "geosite:cn"
                ]
            }
        ]
    },

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

    "outbounds": [
        {
            "protocol": "vmess",
            "settings": {
                "vnext": [
                    {
                        "address": "",
                        "port": 443,
                        "users": [
                            {
                                "id": "",
                                "alterId": 64
                            }
                        ]
                    }
                ]
            },
            "streamSettings": {
                "network": "h2",
                "httpSettings": {
                    "path": "/",
                    "host": [""]
                },
                "security": "tls",
                "tlsSettings": {
                    "serverName": ""
                }
            },
            "mux": {
                "enabled": true,
                "concurrency": 8
            },
            "tag":"proxy"
        },
        {
            "protocol": "freedom",
            "settings": {
                "domainStrategy": "UseIP"
            },
            "streamSettings": {},
            "tag": "direct"
        },
        {
            "protocol": "blackhole",
            "settings": {},
            "tag": "block"
        },
        {
            "protocol": "dns",
            "tag": "dns-out"
        }
    ],
    "routing": {
        "domainStrategy": "IPIfNonMatch",
        "rules": [
            {
                "inboundTag": ["tun2socks"],
                "network": "tcp,udp",
                "port": 53,
                "outboundTag": "dns-out",
                "type": "field"
            },
            {
                "type": "field",
                "outboundTag": "direct",
                "domain": [
                    "geosite:cn"
                ]
            },
            {
                "type": "field",
                "outboundTag": "direct",
                "ip":[
                    "119.29.29.29",
                    "geoip:cn"
                ]
            },
            {
                "type":"field",
                "outboundTag": "proxy",
                "ip":[
                    "8.8.8.8",
                    "8.8.4.4"
                ]
            },
            {
                "type":"field",
                "outboundTag": "block",
                "domain": [
                    "geosite:category-ads"
                ]
            }
        ],
        "strategy": "rules"
    }
}