From 85fd328ee19b91d9d3b8454cf580d87875686f8d Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 28 Feb 2024 22:26:41 +0800 Subject: [PATCH] update --- bin/gen_key_and_update_key.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 "生成和设置密钥成功."