Update serv00.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-03-01 16:43:23 +08:00
committed by GitHub
parent 6e797d5a04
commit 25282cefdb
+2
View File
@@ -1339,8 +1339,10 @@ yellow "3、返回上层"
reading "【请选择 1 或者 2】: " gowarp
if [[ "$gowarp" == 1 ]]; then
jq -r '(.route.rules[] | select(.rule_set != null) | .rule_set[]) |= sub("cnn"; "geolocation-!cn")' "$WORKDIR/config.json" > "$WORKDIR/temp.json" && mv "$WORKDIR/temp.json" "$WORKDIR/config.json"
resservsb
elif [[ "$gowarp" == 2 ]]; then
jq -r '(.route.rules[] | select(.rule_set != null) | .rule_set[]) |= sub("geolocation-!cn"; "cnn")' "$WORKDIR/config.json" > "$WORKDIR/temp.json" && mv "$WORKDIR/temp.json" "$WORKDIR/config.json"
resservsb
else
sb
fi