函数里的变量, 改为局部变量
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ update_key(){
|
||||
docker run --rm teddysun/xray:latest /usr/bin/xray x25519 > $config_dir/key.txt
|
||||
|
||||
# 获取私钥
|
||||
private_key=$(grep "Private" $config_dir/key.txt | awk -F ': ' '{print $2}')
|
||||
local private_key=$(grep "Private" $config_dir/key.txt | awk -F ': ' '{print $2}')
|
||||
|
||||
# 修改config.json密钥属性
|
||||
modify_json_file "$config_dir/config.json" ".inbounds[0].streamSettings.realitySettings.privateKey" "$private_key"
|
||||
|
||||
Reference in New Issue
Block a user