Update serv00keep.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-02-12 08:49:07 +08:00
committed by GitHub
parent 84a097aaff
commit 15107d5f02
+14 -5
View File
@@ -279,7 +279,7 @@ openssl req -new -x509 -days 3650 -key "private.key" -out "cert.pem" -subj "/CN=
nb=$(hostname | cut -d '.' -f 1 | tr -d 's') nb=$(hostname | cut -d '.' -f 1 | tr -d 's')
if [[ "$nb" =~ (14|15|16) ]]; then if [[ "$nb" =~ (14|15|16) ]]; then
ytb='"jnn-pa.googleapis.com","gemini.google.com",' ytb='"jnn-pa.googleapis.com",'
fi fi
hy1p=$(sed -n '1p' hy2ip.txt) hy1p=$(sed -n '1p' hy2ip.txt)
hy2p=$(sed -n '2p' hy2ip.txt) hy2p=$(sed -n '2p' hy2ip.txt)
@@ -420,13 +420,18 @@ hy3p=$(sed -n '3p' hy2ip.txt)
{ {
"type": "direct", "type": "direct",
"tag": "direct" "tag": "direct"
},
{
"type": "block",
"tag": "block"
} }
], ],
"route": { "route": {
"rule_set": [
{
"tag": "geosite-google-gemini",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-google-gemini.srs",
"download_detour": "direct"
}
],
"rules": [ "rules": [
{ {
"domain": [ "domain": [
@@ -434,6 +439,10 @@ hy3p=$(sed -n '3p' hy2ip.txt)
"oh.my.god" "oh.my.god"
], ],
"outbound": "wg" "outbound": "wg"
},
{
"rule_set":"geosite-google-gemini",
"outbound": "wg"
} }
], ],
"final": "direct" "final": "direct"