|
@@ -70,6 +70,10 @@ $_ENV['SingBox_Config'] = [
|
|
|
'strategy' => 'prefer_ipv6',
|
|
|
'detour' => 'select',
|
|
|
],
|
|
|
+ [
|
|
|
+ 'tag' => 'fakeip',
|
|
|
+ 'address' => 'fakeip',
|
|
|
+ ],
|
|
|
[
|
|
|
'tag' => 'block',
|
|
|
'address' => 'rcode://refused',
|
|
@@ -80,20 +84,17 @@ $_ENV['SingBox_Config'] = [
|
|
|
'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 @@ $_ENV['SingBox_Config'] = [
|
|
|
'protocol' => 'dns',
|
|
|
'action' => 'hijack-dns',
|
|
|
],
|
|
|
- [
|
|
|
- 'clash_mode' => 'Direct',
|
|
|
- 'outbound' => 'direct',
|
|
|
- ],
|
|
|
- [
|
|
|
- 'clash_mode' => 'Global',
|
|
|
- 'outbound' => 'select',
|
|
|
- ],
|
|
|
[
|
|
|
'rule_set' => [
|
|
|
'geosite-cn',
|
|
@@ -179,7 +172,7 @@ $_ENV['SingBox_Config'] = [
|
|
|
'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 @@ $_ENV['SingBox_Config'] = [
|
|
|
'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 @@ $_ENV['SingBox_Config'] = [
|
|
|
'cache_id' => '',
|
|
|
'path' => 'cache.db',
|
|
|
],
|
|
|
- 'clash_api' => [
|
|
|
- 'external_controller' => '127.0.0.1:9090',
|
|
|
- ],
|
|
|
],
|
|
|
];
|
|
|
|