mirror of
https://github.com/mack-a/v2ray-agent.git
synced 2026-09-02 13:56:37 +00:00
feat(脚本): 兼容最新reality生成方式(xray-core)
This commit is contained in:
+3
-3
@@ -9026,8 +9026,8 @@ initRealityKey() {
|
|||||||
else
|
else
|
||||||
realityX25519Key=$(/etc/v2ray-agent/xray/xray x25519)
|
realityX25519Key=$(/etc/v2ray-agent/xray/xray x25519)
|
||||||
fi
|
fi
|
||||||
realityPrivateKey=$(echo "${realityX25519Key}" | grep "Private key" | awk '{print $3}')
|
realityPrivateKey=$(echo "${realityX25519Key}" | grep "PrivateKey" | awk '{print $2}')
|
||||||
realityPublicKey=$(echo "${realityX25519Key}" | grep "Public key" | awk '{print $3}')
|
realityPublicKey=$(echo "${realityX25519Key}" | grep "Password" | awk '{print $2}')
|
||||||
if [[ -z "${realityPrivateKey}" ]]; then
|
if [[ -z "${realityPrivateKey}" ]]; then
|
||||||
echoContent red "输入的Private Key不合法"
|
echoContent red "输入的Private Key不合法"
|
||||||
initRealityKey
|
initRealityKey
|
||||||
@@ -9432,7 +9432,7 @@ menu() {
|
|||||||
cd "$HOME" || exit
|
cd "$HOME" || exit
|
||||||
echoContent red "\n=============================================================="
|
echoContent red "\n=============================================================="
|
||||||
echoContent green "作者:mack-a"
|
echoContent green "作者:mack-a"
|
||||||
echoContent green "当前版本:v3.4.28"
|
echoContent green "当前版本:v3.4.29"
|
||||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:八合一共存脚本\c"
|
echoContent green "描述:八合一共存脚本\c"
|
||||||
showInstallStatus
|
showInstallStatus
|
||||||
|
|||||||
Reference in New Issue
Block a user