Skip to content

1.42版本不支持geoip:!cn类型,希望下版本加入 #594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kz-wind opened this issue Jun 10, 2021 · 4 comments
Closed

1.42版本不支持geoip:!cn类型,希望下版本加入 #594

kz-wind opened this issue Jun 10, 2021 · 4 comments

Comments

@kz-wind
Copy link

kz-wind commented Jun 10, 2021

报错如下
Failed to start: main: failed to load config files: [/usr/local/etc/xray/config.json] > infra/conf: failed to parse DNS config > infra/conf: failed to build nameserver > infra/conf: invalid IP rule: [geoip:!cn] > infra/c

@SimonTLS
Copy link

可以routing中geoip:cn直连、others代理,效果等同

@kz-wind
Copy link
Author

kz-wind commented Jun 11, 2021

可以routing中geoip:cn直连、others代理,效果等同

我是在dns中的expectIPs模块使用

@kz-wind
Copy link
Author

kz-wind commented Jun 11, 2021

直接使用了Loyalsoldier/v2ray-rules-dat里的配置
"dns": {
"hosts": {
"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"],
"expectIPs": ["geoip:!cn"]
},
"8.8.8.8",
{
"address": "114.114.114.114",
"port": 53,
"domains": ["geosite:cn", "geosite:category-games@cn"],
"expectIPs": ["geoip:cn"],
"skipFallback": true
},
{
"address": "localhost",
"skipFallback": true
}
]
}

@hmol233
Copy link
Contributor

hmol233 commented Jun 11, 2021

已经在 #443 完成。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants