修改文件名
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Save keys to key.txt
|
||||
xray x25519 > ../conf/key.txt
|
||||
|
||||
private_key=$(grep "Private key" ../conf/key.txt | awk -F ': ' '{print $2}')
|
||||
|
||||
# 修改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 "生成和设置密钥成功."
|
||||
|
||||
Reference in New Issue
Block a user