[fix] 修复新版本xray-core publickey 字段变更问题
This commit is contained in:
@@ -23,7 +23,7 @@ port=$(jq -r '.inbounds[0].port' $config_dir/config.json)
|
||||
dest=$(jq -r '.inbounds[0].streamSettings.realitySettings.dest' $config_dir/config.json)
|
||||
sni=$(echo $dest | awk -F ':' '{print $1}')
|
||||
network="tcp"
|
||||
public_key=$(cat $config_dir/key.txt | grep "Public" | awk -F ': ' '{print $2}')
|
||||
public_key=$(cat $config_dir/key.txt | grep "Password" | awk -F ': ' '{print $2}')
|
||||
|
||||
# 打印配置信息
|
||||
echo -e "\033[32m" # config info with green color
|
||||
@@ -32,7 +32,7 @@ echo "port: $port"
|
||||
echo "uuid: $uuid"
|
||||
echo "dest: $dest"
|
||||
echo "sni: $sni"
|
||||
echo "public_key: $public_key"
|
||||
echo "publicKey/password: $public_key"
|
||||
echo "network: $network"
|
||||
if [ "$ipv4" != "null" ]; then
|
||||
sub_ipv4="vless://$uuid@$ipv4:$port?encryption=none&security=reality&type=$network&sni=$sni&fp=chrome&pbk=$public_key&flow=xtls-rprx-vision#my_docker_vless_reality_vision"
|
||||
|
||||
Reference in New Issue
Block a user