v2fly / v2ray-step-by-step

This repo is a fork of ToutyRater/v2ray-guide, we aim to provide a new step-by-step guide of v2ray
https://guide.v2fly.org
Creative Commons Attribution 4.0 International
700 stars 420 forks source link

只在必要时使用代理,怎么设置? #252

Closed playgithub closed 3 years ago

playgithub commented 3 years ago

如下设置,访问microsfot.com时没有用到代理

{
    "domainStrategy": "AsIs",
    "domains": {
        "block": [
            "geosite:category-ads-all"
        ],
        "direct": [
            "geosite:microsoft",
            "geosite:microsoft-dev"
        ]
    }
}

但是,由于github.com属于微软,这样设置时,访问不了。 改成如下设置

{
    "domainStrategy": "AsIs",
    "domains": {
        "block": [
            "geosite:category-ads-all"
        ],
        "direct": [
            "geosite:microsoft",
            "geosite:microsoft-dev"
        ],
        "proxy": [
            "geosite:geolocation-!cn"
        ]
    }
}

github可以访问,但是访问microsoft.com时,一些域名会使用代理

需要访问microsoft.com时不使用任何代理,同时可以访问github.com。 也就是,只在必要时使用代理。 有办法吗?