1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-23 15:04:41 -05:00

📝 Modify templates

This commit is contained in:
Nite07 2024-10-20 19:05:22 +08:00
parent 66e807ec16
commit 0699e5aa70
7 changed files with 25 additions and 18 deletions

3
merge-templates.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
sing-box merge -C ./templates/windows ./templates/example-windows.json
sing-box merge -C ./templates/linux ./templates/example-linux.json

View File

@ -7,8 +7,10 @@
"servers": [
{
"tag": "google",
"address": "tls://8.8.8.8",
"detour": "default"
"address": "https://dns.google/dns-query",
"address_resolver": "local",
"address_strategy": "prefer_ipv4",
"client_subnet": "114.114.114.114/24"
},
{
"tag": "local",
@ -57,7 +59,7 @@
"client_subnet": "114.114.114.114/24"
}
],
"final": "local"
"final": "google"
},
"inbounds": [
{
@ -70,8 +72,7 @@
"auto_redirect": true,
"strict_route": true,
"exclude_interface": "tailscale0",
"sniff": true,
"sniff_override_destination": true
"sniff": true
}
],
"outbounds": [

View File

@ -7,8 +7,10 @@
"servers": [
{
"tag": "google",
"address": "tls://8.8.8.8",
"detour": "default"
"address": "https://dns.google/dns-query",
"address_resolver": "local",
"address_strategy": "prefer_ipv4",
"client_subnet": "114.114.114.114/24"
},
{
"tag": "local",
@ -57,7 +59,7 @@
"client_subnet": "114.114.114.114/24"
}
],
"final": "local"
"final": "google"
},
"inbounds": [
{
@ -69,8 +71,7 @@
"auto_route": true,
"strict_route": true,
"exclude_interface": "tailscale0",
"sniff": true,
"sniff_override_destination": true
"sniff": true
}
],
"outbounds": [

View File

@ -3,8 +3,10 @@
"servers": [
{
"tag": "google",
"address": "tls://8.8.8.8",
"detour": "default"
"address": "https://dns.google/dns-query",
"address_resolver": "local",
"address_strategy": "prefer_ipv4",
"client_subnet": "114.114.114.114/24"
},
{
"tag": "local",
@ -53,7 +55,7 @@
"client_subnet": "114.114.114.114/24"
}
],
"final": "local",
"final": "google",
"disable_cache": false,
"disable_expire": false
}

View File

@ -6,7 +6,6 @@
"auto_redirect": true,
"strict_route": true,
"sniff": true,
"sniff_override_destination": true,
"address": ["172.16.0.1/30", "fdfe:dcba:9876::1/126"],
"exclude_interface": ["tailscale0"]
}

View File

@ -3,8 +3,10 @@
"servers": [
{
"tag": "google",
"address": "tls://8.8.8.8",
"detour": "default"
"address": "https://dns.google/dns-query",
"address_resolver": "local",
"address_strategy": "prefer_ipv4",
"client_subnet": "114.114.114.114/24"
},
{
"tag": "local",
@ -53,7 +55,7 @@
"client_subnet": "114.114.114.114/24"
}
],
"final": "local",
"final": "google",
"disable_cache": false,
"disable_expire": false
}

View File

@ -5,7 +5,6 @@
"auto_route": true,
"strict_route": true,
"sniff": true,
"sniff_override_destination": true,
"address": ["172.16.0.1/30", "fdfe:dcba:9876::1/126"],
"exclude_interface": ["tailscale0"]
}