This commit is contained in:
vincent 2024-02-28 22:26:41 +08:00
parent e1df21775d
commit 85fd328ee1

View File

@ -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 "生成和设置密钥成功."