Skip to content

请问以下配置文件可以简化一下吗? #3162

Closed Answered by chika0801
lindongbin asked this question in Q&A
Discussion options

You must be logged in to vote
{
    "outbounds": [
        {
            "tag": "ip"
        },
        {
            "tag": "ipv4",
            "domainStrategy": "UseIPv4" // 出站的这参数,如果你不写,默认行为是AsIs。你写了,工作流程进进到出站的请求是域名,这域名进Xray的DNS部分,如果你没写DNS就是用系统DNS查询
        }
    ],
    "routing": {
        "rules": [
            {
                "type": "field",
                "domain": [
                    "bing.com",
                    "gemini.google.com"
                ],
                "outboundTag": "ipv4"
            }
        ]
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lindongbin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants