diff --git a/bin/gen_key_and_update_key.sh b/bin/gen_key_and_update_key.sh index 333f57b..689a41d 100644 --- a/bin/gen_key_and_update_key.sh +++ b/bin/gen_key_and_update_key.sh @@ -2,12 +2,12 @@ # Save keys to key.txt xray x25519 > ../conf/key.txt -echo "success save keys to key.txt" private_key=$(grep "Private key" ../conf/key.txt | awk -F ': ' '{print $2}') -# # update config.json +# 修改config.json密钥属性 jq ".inbounds[0].streamSettings.realitySettings.privateKey=\"$private_key\"" ../conf/config.json > ../conf/config_temp.json mv ../conf/config_temp.json ../conf/config.json + echo "生成和设置密钥成功."