mirror of
https://github.com/mack-a/v2ray-agent.git
synced 2026-09-02 13:56:37 +00:00
fix(脚本): 修复xray无法读取publicKey的问题
This commit is contained in:
+2
-2
@@ -9219,7 +9219,7 @@ initRealityKey() {
|
|||||||
realityX25519Key=$(/etc/v2ray-agent/xray/xray x25519)
|
realityX25519Key=$(/etc/v2ray-agent/xray/xray x25519)
|
||||||
fi
|
fi
|
||||||
realityPrivateKey=$(echo "${realityX25519Key}" | grep "PrivateKey" | awk '{print $2}')
|
realityPrivateKey=$(echo "${realityX25519Key}" | grep "PrivateKey" | awk '{print $2}')
|
||||||
realityPublicKey=$(echo "${realityX25519Key}" | grep "Password" | awk '{print $2}')
|
realityPublicKey=$(echo "${realityX25519Key}" | grep "Password" | awk '{print $3}')
|
||||||
if [[ -z "${realityPrivateKey}" ]]; then
|
if [[ -z "${realityPrivateKey}" ]]; then
|
||||||
echoContent red "输入的Private Key不合法"
|
echoContent red "输入的Private Key不合法"
|
||||||
initRealityKey
|
initRealityKey
|
||||||
@@ -9631,7 +9631,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.5.10"
|
echoContent green "当前版本:v3.5.11"
|
||||||
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