From 511ca058eacb71499e090e0c33b3827e6ac0a600 Mon Sep 17 00:00:00 2001 From: 77-QiQi <87052253+77-QiQi@users.noreply.github.com> Date: Fri, 15 Nov 2024 03:45:23 +0800 Subject: [PATCH 1/2] clash_mode deleted(sing-box subscribe) --- config/appprofile.example.php | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/config/appprofile.example.php b/config/appprofile.example.php index d8b96c7ba2..3d40b7aa22 100644 --- a/config/appprofile.example.php +++ b/config/appprofile.example.php @@ -70,6 +70,10 @@ 'strategy' => 'prefer_ipv6', 'detour' => 'select', ], + [ + 'tag' => 'fakeip', + 'address' => 'fakeip', + ], [ 'tag' => 'block', 'address' => 'rcode://refused', @@ -80,20 +84,17 @@ 'outbound' => 'any', 'server' => 'local', ], - [ - 'clash_mode' => 'Global', - 'server' => 'cloudflare', - ], [ 'rule_set' => 'geosite-cn', 'server' => 'local', ], - [ - 'clash_mode' => 'Direct', - 'server' => 'local', - ], ], 'final' => 'cloudflare', + 'fakeip' => [ + 'enabled' => true, + 'inet4_range' => '198.18.0.0/15', + 'inet6_range' => 'fc00::/18', + ], 'disable_cache' => true, 'independent_cache' => true, ], @@ -148,14 +149,6 @@ 'protocol' => 'dns', 'action' => 'hijack-dns', ], - [ - 'clash_mode' => 'Direct', - 'outbound' => 'direct', - ], - [ - 'clash_mode' => 'Global', - 'outbound' => 'select', - ], [ 'rule_set' => [ 'geosite-cn', @@ -179,7 +172,7 @@ 'type' => 'remote', 'format' => 'binary', 'url' => 'https://' . $_ENV['jsdelivr_url'] . '/gh/SagerNet/sing-geoip@rule-set/geoip-cn.srs', - 'download_detour' => 'select', + 'download_detour' => 'auto', 'update_interval' => '1d', ], [ @@ -187,7 +180,7 @@ 'type' => 'remote', 'format' => 'binary', 'url' => 'https://' . $_ENV['jsdelivr_url'] . '/gh/SagerNet/sing-geosite@rule-set/geosite-cn.srs', - 'download_detour' => 'select', + 'download_detour' => 'auto', 'update_interval' => '1d', ], ], @@ -201,9 +194,6 @@ 'cache_id' => '', 'path' => 'cache.db', ], - 'clash_api' => [ - 'external_controller' => '127.0.0.1:9090', - ], ], ]; From c69c3a11ad5af3dd2f051d81defa30c07c0259d5 Mon Sep 17 00:00:00 2001 From: 77-QiQi <87052253+77-QiQi@users.noreply.github.com> Date: Sat, 16 Nov 2024 17:26:05 +0800 Subject: [PATCH 2/2] (sing-box)add geosite-geolocation-!cn --- config/appprofile.example.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/config/appprofile.example.php b/config/appprofile.example.php index 3d40b7aa22..55e3485603 100644 --- a/config/appprofile.example.php +++ b/config/appprofile.example.php @@ -84,9 +84,13 @@ 'outbound' => 'any', 'server' => 'local', ], + [ + 'rule_set' => 'geosite-geolocation-!cn', + 'server' => 'cloudflare', + ], [ 'rule_set' => 'geosite-cn', - 'server' => 'local', + 'server' => 'fakeip', ], ], 'final' => 'cloudflare', @@ -149,6 +153,12 @@ 'protocol' => 'dns', 'action' => 'hijack-dns', ], + [ + 'rule_set' => [ + 'geosite-geolocation-!cn', + ], + 'outbound' => 'select', + ], [ 'rule_set' => [ 'geosite-cn', @@ -183,6 +193,14 @@ 'download_detour' => 'auto', 'update_interval' => '1d', ], + [ + 'tag' => 'geosite-geolocation-!cn', + 'type' => 'remote', + 'format' => 'binary', + 'url' => 'https://' . $_ENV['jsdelivr_url'] . '/gh/SagerNet/sing-geosite@rule-set/geosite-geolocation-!cn.srs', + 'download_detour' => 'auto', + 'update_interval' => '1d', + ], ], 'final' => 'select', 'auto_detect_interface' => true,