update
This commit is contained in:
parent
e1df21775d
commit
85fd328ee1
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
# Save keys to key.txt
|
# Save keys to key.txt
|
||||||
xray x25519 > ../conf/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}')
|
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
|
jq ".inbounds[0].streamSettings.realitySettings.privateKey=\"$private_key\"" ../conf/config.json > ../conf/config_temp.json
|
||||||
mv ../conf/config_temp.json ../conf/config.json
|
mv ../conf/config_temp.json ../conf/config.json
|
||||||
|
|
||||||
echo "生成和设置密钥成功."
|
echo "生成和设置密钥成功."
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user