From c97fa3a76771a47899f3e8028a25a4f899726c52 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Fri, 28 Apr 2023 10:02:42 +0800 Subject: [PATCH] format dns config --- v2rayN/v2rayN/Sample/dns_singbox_normal | 11 +++-- v2rayN/v2rayN/Sample/tun_singbox_dns | 66 +++++++++++++------------ 2 files changed, 43 insertions(+), 34 deletions(-) diff --git a/v2rayN/v2rayN/Sample/dns_singbox_normal b/v2rayN/v2rayN/Sample/dns_singbox_normal index d75d9e97..dedab8b5 100644 --- a/v2rayN/v2rayN/Sample/dns_singbox_normal +++ b/v2rayN/v2rayN/Sample/dns_singbox_normal @@ -17,11 +17,16 @@ ], "rules": [ { - "geosite": [ "cn" ], + "geosite": [ + "cn" + ], "server": "local" }, { - "geosite": [ "category-ads-all" ], + "geosite": [ + "category-ads-all" + ], "server": "block" } - ]} + ] +} \ No newline at end of file diff --git a/v2rayN/v2rayN/Sample/tun_singbox_dns b/v2rayN/v2rayN/Sample/tun_singbox_dns index b0e58d69..5d03bf90 100644 --- a/v2rayN/v2rayN/Sample/tun_singbox_dns +++ b/v2rayN/v2rayN/Sample/tun_singbox_dns @@ -1,31 +1,35 @@ - { - "servers": [ - { - "tag": "remote", - "address": "tcp://8.8.8.8", - "detour": "proxy" - }, - { - "tag": "local", - "address": "223.5.5.5", - "detour": "direct" - }, - { - "tag": "block", - "address": "rcode://success" - } - ], - "rules": [ - { - "geosite": [ "cn" ], - "server": "local", - "disable_cache": true - }, - { - "geosite": [ "category-ads-all" ], - "server": "block", - "disable_cache": true - } - ], - "strategy": "ipv4_only" - } +{ + "servers": [ + { + "tag": "remote", + "address": "tcp://8.8.8.8", + "detour": "proxy" + }, + { + "tag": "local", + "address": "223.5.5.5", + "detour": "direct" + }, + { + "tag": "block", + "address": "rcode://success" + } + ], + "rules": [ + { + "geosite": [ + "cn" + ], + "server": "local", + "disable_cache": true + }, + { + "geosite": [ + "category-ads-all" + ], + "server": "block", + "disable_cache": true + } + ], + "strategy": "ipv4_only" +} \ No newline at end of file