Update serv00.sh
This commit is contained in:
@@ -453,10 +453,7 @@ hy3p=$(sed -n '3p' hy2ip.txt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
EOF
|
"outbounds": [
|
||||||
if [[ "$nb" =~ (14|15|16) ]]; then
|
|
||||||
cat >> config.json <<EOF
|
|
||||||
"outbounds": [
|
|
||||||
{
|
{
|
||||||
"type": "wireguard",
|
"type": "wireguard",
|
||||||
"tag": "wg",
|
"tag": "wg",
|
||||||
@@ -487,8 +484,18 @@ cat >> config.json <<EOF
|
|||||||
"format": "binary",
|
"format": "binary",
|
||||||
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/google-gemini.srs",
|
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/google-gemini.srs",
|
||||||
"download_detour": "direct"
|
"download_detour": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tag": "geolocation-!cn",
|
||||||
|
"type": "remote",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/geolocation-!cn.srs",
|
||||||
|
"download_detour": "direct"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
EOF
|
||||||
|
if [[ "$nb" =~ (14|15|16) ]]; then
|
||||||
|
cat >> config.json <<EOF
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"domain": [
|
"domain": [
|
||||||
@@ -497,7 +504,9 @@ cat >> config.json <<EOF
|
|||||||
"outbound": "wg"
|
"outbound": "wg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rule_set":"google-gemini",
|
"rule_set":[
|
||||||
|
"google-gemini"
|
||||||
|
],
|
||||||
"outbound": "wg"
|
"outbound": "wg"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -507,12 +516,16 @@ cat >> config.json <<EOF
|
|||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
cat >> config.json <<EOF
|
cat >> config.json <<EOF
|
||||||
"outbounds": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"type": "direct",
|
"rule_set":[
|
||||||
"tag": "direct"
|
"yg_kkk"
|
||||||
}
|
],
|
||||||
]
|
"outbound": "wg"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"final": "direct"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user