mirror of
https://github.com/nitezs/sub2sing-box.git
synced 2024-12-23 15:14:43 -05:00
📝 Modify templates
This commit is contained in:
parent
66e807ec16
commit
0699e5aa70
3
merge-templates.sh
Executable file
3
merge-templates.sh
Executable 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
|
@ -7,8 +7,10 @@
|
|||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"tag": "google",
|
"tag": "google",
|
||||||
"address": "tls://8.8.8.8",
|
"address": "https://dns.google/dns-query",
|
||||||
"detour": "default"
|
"address_resolver": "local",
|
||||||
|
"address_strategy": "prefer_ipv4",
|
||||||
|
"client_subnet": "114.114.114.114/24"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "local",
|
"tag": "local",
|
||||||
@ -57,7 +59,7 @@
|
|||||||
"client_subnet": "114.114.114.114/24"
|
"client_subnet": "114.114.114.114/24"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final": "local"
|
"final": "google"
|
||||||
},
|
},
|
||||||
"inbounds": [
|
"inbounds": [
|
||||||
{
|
{
|
||||||
@ -70,8 +72,7 @@
|
|||||||
"auto_redirect": true,
|
"auto_redirect": true,
|
||||||
"strict_route": true,
|
"strict_route": true,
|
||||||
"exclude_interface": "tailscale0",
|
"exclude_interface": "tailscale0",
|
||||||
"sniff": true,
|
"sniff": true
|
||||||
"sniff_override_destination": true
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
|
@ -7,8 +7,10 @@
|
|||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"tag": "google",
|
"tag": "google",
|
||||||
"address": "tls://8.8.8.8",
|
"address": "https://dns.google/dns-query",
|
||||||
"detour": "default"
|
"address_resolver": "local",
|
||||||
|
"address_strategy": "prefer_ipv4",
|
||||||
|
"client_subnet": "114.114.114.114/24"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "local",
|
"tag": "local",
|
||||||
@ -57,7 +59,7 @@
|
|||||||
"client_subnet": "114.114.114.114/24"
|
"client_subnet": "114.114.114.114/24"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final": "local"
|
"final": "google"
|
||||||
},
|
},
|
||||||
"inbounds": [
|
"inbounds": [
|
||||||
{
|
{
|
||||||
@ -69,8 +71,7 @@
|
|||||||
"auto_route": true,
|
"auto_route": true,
|
||||||
"strict_route": true,
|
"strict_route": true,
|
||||||
"exclude_interface": "tailscale0",
|
"exclude_interface": "tailscale0",
|
||||||
"sniff": true,
|
"sniff": true
|
||||||
"sniff_override_destination": true
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
|
@ -3,8 +3,10 @@
|
|||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"tag": "google",
|
"tag": "google",
|
||||||
"address": "tls://8.8.8.8",
|
"address": "https://dns.google/dns-query",
|
||||||
"detour": "default"
|
"address_resolver": "local",
|
||||||
|
"address_strategy": "prefer_ipv4",
|
||||||
|
"client_subnet": "114.114.114.114/24"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "local",
|
"tag": "local",
|
||||||
@ -53,7 +55,7 @@
|
|||||||
"client_subnet": "114.114.114.114/24"
|
"client_subnet": "114.114.114.114/24"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final": "local",
|
"final": "google",
|
||||||
"disable_cache": false,
|
"disable_cache": false,
|
||||||
"disable_expire": false
|
"disable_expire": false
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
"auto_redirect": true,
|
"auto_redirect": true,
|
||||||
"strict_route": true,
|
"strict_route": true,
|
||||||
"sniff": true,
|
"sniff": true,
|
||||||
"sniff_override_destination": true,
|
|
||||||
"address": ["172.16.0.1/30", "fdfe:dcba:9876::1/126"],
|
"address": ["172.16.0.1/30", "fdfe:dcba:9876::1/126"],
|
||||||
"exclude_interface": ["tailscale0"]
|
"exclude_interface": ["tailscale0"]
|
||||||
}
|
}
|
||||||
|
@ -3,8 +3,10 @@
|
|||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"tag": "google",
|
"tag": "google",
|
||||||
"address": "tls://8.8.8.8",
|
"address": "https://dns.google/dns-query",
|
||||||
"detour": "default"
|
"address_resolver": "local",
|
||||||
|
"address_strategy": "prefer_ipv4",
|
||||||
|
"client_subnet": "114.114.114.114/24"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "local",
|
"tag": "local",
|
||||||
@ -53,7 +55,7 @@
|
|||||||
"client_subnet": "114.114.114.114/24"
|
"client_subnet": "114.114.114.114/24"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final": "local",
|
"final": "google",
|
||||||
"disable_cache": false,
|
"disable_cache": false,
|
||||||
"disable_expire": false
|
"disable_expire": false
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
"auto_route": true,
|
"auto_route": true,
|
||||||
"strict_route": true,
|
"strict_route": true,
|
||||||
"sniff": true,
|
"sniff": true,
|
||||||
"sniff_override_destination": true,
|
|
||||||
"address": ["172.16.0.1/30", "fdfe:dcba:9876::1/126"],
|
"address": ["172.16.0.1/30", "fdfe:dcba:9876::1/126"],
|
||||||
"exclude_interface": ["tailscale0"]
|
"exclude_interface": ["tailscale0"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user