From 02bed8b7112ae2ee8edaccd4d52f5c41bdb69852 Mon Sep 17 00:00:00 2001 From: wulabing Date: Thu, 16 Mar 2023 22:39:33 +0800 Subject: [PATCH] V0.0.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [fix] 配置文件替换 bug 修正 --- reality/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reality/entrypoint.sh b/reality/entrypoint.sh index d23bedd..51ec85a 100644 --- a/reality/entrypoint.sh +++ b/reality/entrypoint.sh @@ -39,7 +39,7 @@ SERVERNAMES_JSON_ARRAY="$(echo "[$(echo $SERVERNAMES | awk '{for(i=1;i<=NF;i++) jq --argjson serverNames "$SERVERNAMES_JSON_ARRAY" '.inbounds[0].streamSettings.realitySettings.serverNames = $serverNames' /config.json > /config.json_tmp && mv /config.json_tmp /config.json jq ".inbounds[0].streamSettings.realitySettings.privateKey=\"$PRIVATEKEY\"" /config.json > /config.json_tmp && mv /config.json_tmp /config.json -jq ".inbounds[0].streamSettings.realitySettings.network=\"$NETWORK\"" /config.json > /config.json_tmp && mv /config.json_tmp /config.json +jq ".inbounds[0].streamSettings.network=\"$NETWORK\"" /config.json > /config.json_tmp && mv /config.json_tmp /config.json # config info with green color echo -e "\033[32m"