Skip to content

Commit 085e415

Browse files
committed
feat(脚本): 兼容最新reality生成方式(xray-core)
1 parent 10ca4ff commit 085e415

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9026,8 +9026,8 @@ initRealityKey() {
90269026
else
90279027
realityX25519Key=$(/etc/v2ray-agent/xray/xray x25519)
90289028
fi
9029-
realityPrivateKey=$(echo "${realityX25519Key}" | grep "Private key" | awk '{print $3}')
9030-
realityPublicKey=$(echo "${realityX25519Key}" | grep "Public key" | awk '{print $3}')
9029+
realityPrivateKey=$(echo "${realityX25519Key}" | grep "PrivateKey" | awk '{print $2}')
9030+
realityPublicKey=$(echo "${realityX25519Key}" | grep "Password" | awk '{print $2}')
90319031
if [[ -z "${realityPrivateKey}" ]]; then
90329032
echoContent red "输入的Private Key不合法"
90339033
initRealityKey
@@ -9432,7 +9432,7 @@ menu() {
94329432
cd "$HOME" || exit
94339433
echoContent red "\n=============================================================="
94349434
echoContent green "作者:mack-a"
9435-
echoContent green "当前版本:v3.4.28"
9435+
echoContent green "当前版本:v3.4.29"
94369436
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
94379437
echoContent green "描述:八合一共存脚本\c"
94389438
showInstallStatus

0 commit comments

Comments
 (0)