feat(脚本): 修复anytls展示问题、隐藏pqv参数

pull/1205/head v3.4.22
mack-a 2025-08-13 19:33:28 +08:00
parent 4993b4e87b
commit 5cb9119ea9
1 changed files with 12 additions and 8 deletions

View File

@ -5380,10 +5380,12 @@ EOF
publicKey=${singBoxVLESSRealityPublicKey} publicKey=${singBoxVLESSRealityPublicKey}
fi fi
echoContent yellow " ---> 通用格式(VLESS+reality+uTLS+Vision)" echoContent yellow " ---> 通用格式(VLESS+reality+uTLS+Vision)"
echoContent green " vless://${id}@$(getPublicIP):${port}?encryption=none&security=reality&pqv=${realityMldsa65Verify}&type=tcp&sni=${realityServerName}&fp=chrome&pbk=${publicKey}&sid=6ba85179e30d4fc2&flow=xtls-rprx-vision#${email}\n" # &pqv=${realityMldsa65Verify}
echoContent green " vless://${id}@$(getPublicIP):${port}?encryption=none&security=reality&type=tcp&sni=${realityServerName}&fp=chrome&pbk=${publicKey}&sid=6ba85179e30d4fc2&flow=xtls-rprx-vision#${email}\n"
echoContent yellow " ---> 格式化明文(VLESS+reality+uTLS+Vision)" echoContent yellow " ---> 格式化明文(VLESS+reality+uTLS+Vision)"
echoContent green "协议类型:VLESS reality地址:$(getPublicIP)publicKey:${publicKey}shortId: 6ba85179e30d4fc2pqv=${realityMldsa65Verify}serverNames${realityServerName},端口:${port}用户ID:${id},传输方式:tcp账户名:${email}\n" # pqv=${realityMldsa65Verify}
echoContent green "协议类型:VLESS reality地址:$(getPublicIP)publicKey:${publicKey}shortId: 6ba85179e30d4fc2serverNames${realityServerName},端口:${port}用户ID:${id},传输方式:tcp账户名:${email}\n"
cat <<EOF >>"/etc/v2ray-agent/subscribe_local/default/${user}" cat <<EOF >>"/etc/v2ray-agent/subscribe_local/default/${user}"
vless://${id}@$(getPublicIP):${port}?encryption=none&security=reality&pqv=${realityMldsa65Verify}&type=tcp&sni=${realityServerName}&fp=chrome&pbk=${publicKey}&sid=6ba85179e30d4fc2&flow=xtls-rprx-vision#${email} vless://${id}@$(getPublicIP):${port}?encryption=none&security=reality&pqv=${realityMldsa65Verify}&type=tcp&sni=${realityServerName}&fp=chrome&pbk=${publicKey}&sid=6ba85179e30d4fc2&flow=xtls-rprx-vision#${email}
EOF EOF
@ -5421,10 +5423,12 @@ EOF
fi fi
echoContent yellow " ---> 通用格式(VLESS+reality+uTLS+gRPC)" echoContent yellow " ---> 通用格式(VLESS+reality+uTLS+gRPC)"
echoContent green " vless://${id}@$(getPublicIP):${port}?encryption=none&security=reality&pqv=${realityMldsa65Verify}&type=grpc&sni=${realityServerName}&fp=chrome&pbk=${publicKey}&sid=6ba85179e30d4fc2&path=grpc&serviceName=grpc#${email}\n" # pqv=${realityMldsa65Verify}&
echoContent green " vless://${id}@$(getPublicIP):${port}?encryption=none&security=reality&type=grpc&sni=${realityServerName}&fp=chrome&pbk=${publicKey}&sid=6ba85179e30d4fc2&path=grpc&serviceName=grpc#${email}\n"
echoContent yellow " ---> 格式化明文(VLESS+reality+uTLS+gRPC)" echoContent yellow " ---> 格式化明文(VLESS+reality+uTLS+gRPC)"
echoContent green "协议类型:VLESS realityserviceName:grpc地址:$(getPublicIP)publicKey:${publicKey}shortId: 6ba85179e30d4fc2pqv=${realityMldsa65Verify}serverNames${realityServerName},端口:${port}用户ID:${id},传输方式:gRPCclient-fingerprintchrome账户名:${email}\n" # pqv=${realityMldsa65Verify}
echoContent green "协议类型:VLESS realityserviceName:grpc地址:$(getPublicIP)publicKey:${publicKey}shortId: 6ba85179e30d4fc2serverNames${realityServerName},端口:${port}用户ID:${id},传输方式:gRPCclient-fingerprintchrome账户名:${email}\n"
cat <<EOF >>"/etc/v2ray-agent/subscribe_local/default/${user}" cat <<EOF >>"/etc/v2ray-agent/subscribe_local/default/${user}"
vless://${id}@$(getPublicIP):${port}?encryption=none&security=reality&pqv=${realityMldsa65Verify}&type=grpc&sni=${realityServerName}&fp=chrome&pbk=${publicKey}&sid=6ba85179e30d4fc2&path=grpc&serviceName=grpc#${email} vless://${id}@$(getPublicIP):${port}?encryption=none&security=reality&pqv=${realityMldsa65Verify}&type=grpc&sni=${realityServerName}&fp=chrome&pbk=${publicKey}&sid=6ba85179e30d4fc2&path=grpc&serviceName=grpc#${email}
EOF EOF
@ -5828,7 +5832,7 @@ showAccounts() {
done done
fi fi
# AnyTLS # AnyTLS
if echo ${currentInstallProtocolType} | grep -q ",13," || [[ -n "${hysteriaPort}" ]]; then if echo ${currentInstallProtocolType} | grep -q ",13,"; then
echoContent skyBlue "\n================================ AnyTLS ================================\n" echoContent skyBlue "\n================================ AnyTLS ================================\n"
jq -r -c '.inbounds[]|.users[]' "${configPath}13_anytls_inbounds.json" | while read -r user; do jq -r -c '.inbounds[]|.users[]' "${configPath}13_anytls_inbounds.json" | while read -r user; do
@ -9504,8 +9508,8 @@ initRealityMldsa65() {
realityMldsa65Verify=$(echo "${realityMldsa65}" | tail -n 1 | awk '{print $2}') realityMldsa65Verify=$(echo "${realityMldsa65}" | tail -n 1 | awk '{print $2}')
# fi # fi
fi fi
echoContent green "\n Seed:${realityMldsa65Seed}" # echoContent green "\n Seed:${realityMldsa65Seed}"
echoContent green "\n Verify:${realityMldsa65Verify}" # echoContent green "\n Verify:${realityMldsa65Verify}"
} }
# 检查reality域名是否符合 # 检查reality域名是否符合
checkRealityDest() { checkRealityDest() {
@ -9933,7 +9937,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.21" echoContent green "当前版本v3.4.22"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent" echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c" echoContent green "描述:八合一共存脚本\c"
showInstallStatus showInstallStatus