[fix] 修复新版本xray-core publickey 字段变更问题
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ source $script_dir/utils/jq_util.sh
|
||||
docker run --rm teddysun/xray:latest /usr/bin/xray x25519 > $config_dir/key.txt
|
||||
|
||||
# 获取私钥
|
||||
private_key=$(grep "Private key" $config_dir/key.txt | awk -F ': ' '{print $2}')
|
||||
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