Refine config example

This commit is contained in:
Loyalsoldier 2020-02-03 00:59:29 +08:00 committed by GitHub
parent b3b6304a12
commit 1953b6a1bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

114
README.md
View File

@ -44,19 +44,17 @@
**Routing 配置方式** **Routing 配置方式**
```json ```json
{ "routing": {
"routing": { "rules": [
"rules": [ {
{ "type": "field",
"type": "field", "outboundTag": "Direct",
"outboundTag": "Direct", "ip": [
"ip": [ "geoip:cn",
"geoip:cn", "geoip:private"
"geoip:private" ]
] }
} ]
]
}
} }
``` ```
@ -67,59 +65,55 @@
**Routing 配置方式** **Routing 配置方式**
```json ```json
{ "routing": {
"routing": { "rules": [
"rules": [ {
{ "type": "field",
"type": "field", "outboundTag": "Reject",
"outboundTag": "Reject", "domain": [
"domain": [ "geosite:category-ads-all"
"geosite:category-ads-all" ]
] },
}, {
{ "type": "field",
"type": "field", "outboundTag": "Proxy",
"outboundTag": "Proxy", "domain": [
"domain": [ "geosite:geolocation-!cn"
"geosite:geolocation-!cn" ]
] },
}, {
{ "type": "field",
"type": "field", "outboundTag": "Direct",
"outboundTag": "Direct", "domain": [
"domain": [ "geosite:cn"
"geosite:cn" ]
] }
} ]
]
}
} }
``` ```
**DNS 配置方式** **DNS 配置方式**
```json ```json
{ "dns": {
"dns": { "servers": [
"servers": [ {
{ "address": "1.1.1.1",
"address": "1.1.1.1", "port": 53,
"port": 53, "domains": [
"domains": [ "geosite:geolocation-!cn"
"geosite:geolocation-!cn" ]
] },
}, {
{ "address": "114.114.114.114",
"address": "114.114.114.114", "port": 53,
"port": 53, "domains": [
"domains": [ "geosite:cn"
"geosite:cn" ]
] },
}, "8.8.8.8",
"8.8.8.8", "223.5.5.5"
"223.5.5.5" ]
]
}
} }
``` ```