fix(脚本): 修复Mldsa65计算问题

master v3.4.26
mack-a 2025-08-22 18:09:43 +08:00
parent 5f76d91240
commit 540a49fd6f
1 changed files with 3 additions and 2 deletions

View File

@ -9488,7 +9488,8 @@ initRealityKey() {
initRealityMldsa65() {
echoContent skyBlue "\n生成Reality mldsa65\n"
if /etc/v2ray-agent/xray/xray tls ping "${realityServerName}:${realityDomainPort}" 2>/dev/null | grep -q "X25519MLKEM768"; then
length=$(/etc/v2ray-agent/xray/xray tls ping "${realityServerName}:${realityDomainPort}" | grep "Certificate chain's total length:" | awk '{print $5}')
length=$(/etc/v2ray-agent/xray/xray tls ping "${realityServerName}:${realityDomainPort}" | grep "Certificate chain's total length:" | awk '{print $5}' | head -1)
if [ "$length" -gt 3500 ]; then
if [[ -n "${currentRealityMldsa65}" && -z "${lastInstallationConfig}" ]]; then
read -r -p "读取到上次安装记录是否使用上次安装时的Seed/Verify [y/n]:" historyMldsa65Status
@ -9945,7 +9946,7 @@ menu() {
cd "$HOME" || exit
echoContent red "\n=============================================================="
echoContent green "作者mack-a"
echoContent green "当前版本v3.4.25"
echoContent green "当前版本v3.4.26"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus