From 1953b6a1bbde047de28538b497ee89e90d52df82 Mon Sep 17 00:00:00 2001 From: Loyalsoldier Date: Mon, 3 Feb 2020 00:59:29 +0800 Subject: [PATCH] Refine config example --- README.md | 114 ++++++++++++++++++++++++++---------------------------- 1 file changed, 54 insertions(+), 60 deletions(-) diff --git a/README.md b/README.md index 1c8884c..23cb1ff 100644 --- a/README.md +++ b/README.md @@ -44,19 +44,17 @@ **Routing 配置方式**: ```json -{ - "routing": { - "rules": [ - { - "type": "field", - "outboundTag": "Direct", - "ip": [ - "geoip:cn", - "geoip:private" - ] - } - ] - } +"routing": { + "rules": [ + { + "type": "field", + "outboundTag": "Direct", + "ip": [ + "geoip:cn", + "geoip:private" + ] + } + ] } ``` @@ -67,59 +65,55 @@ **Routing 配置方式**: ```json -{ - "routing": { - "rules": [ - { - "type": "field", - "outboundTag": "Reject", - "domain": [ - "geosite:category-ads-all" - ] - }, - { - "type": "field", - "outboundTag": "Proxy", - "domain": [ - "geosite:geolocation-!cn" - ] - }, - { - "type": "field", - "outboundTag": "Direct", - "domain": [ - "geosite:cn" - ] - } - ] - } +"routing": { + "rules": [ + { + "type": "field", + "outboundTag": "Reject", + "domain": [ + "geosite:category-ads-all" + ] + }, + { + "type": "field", + "outboundTag": "Proxy", + "domain": [ + "geosite:geolocation-!cn" + ] + }, + { + "type": "field", + "outboundTag": "Direct", + "domain": [ + "geosite:cn" + ] + } + ] } ``` **DNS 配置方式**: ```json -{ - "dns": { - "servers": [ - { - "address": "1.1.1.1", - "port": 53, - "domains": [ - "geosite:geolocation-!cn" - ] - }, - { - "address": "114.114.114.114", - "port": 53, - "domains": [ - "geosite:cn" - ] - }, - "8.8.8.8", - "223.5.5.5" - ] - } +"dns": { + "servers": [ + { + "address": "1.1.1.1", + "port": 53, + "domains": [ + "geosite:geolocation-!cn" + ] + }, + { + "address": "114.114.114.114", + "port": 53, + "domains": [ + "geosite:cn" + ] + }, + "8.8.8.8", + "223.5.5.5" + ] } ```