From fb22744fa76a16248a8b51d1315dae9604dbf57f Mon Sep 17 00:00:00 2001 From: legiz-ru Date: Thu, 13 Feb 2025 08:11:20 +0300 Subject: [PATCH] add clash mode selector for sing-box clients --- config/sing.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/config/sing.json b/config/sing.json index bd510e2..3f447d3 100644 --- a/config/sing.json +++ b/config/sing.json @@ -10,7 +10,7 @@ "domain_strategy": "prefer_ipv4", "interface_name": "sing-tun", "address": [ - "172.19.0.1\/30" + "172.19.0.1/30" ], "mtu": 1400, "auto_route": true, @@ -43,7 +43,7 @@ }, { "tag": "dns-remote", - "address": "tcp:\/\/8.8.8.8", + "address": "tcp://8.8.8.8", "address_strategy": "prefer_ipv4", "strategy": "prefer_ipv4", "detour": "direct" @@ -110,6 +110,14 @@ "action": "sniff", "timeout": "1s" }, + { + "clash_mode": "Direct", + "outbound": "direct" + }, + { + "clash_mode": "Global", + "outbound": "~outbound~" + }, { "addruleset": true, "outbound": "direct"