Skip to content

Commit 1a84d6e

Browse files
authored
fix(脚本): 修复xhttp扫码配置
1 parent a2ec146 commit 1a84d6e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

install.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ showInstallStatus() {
10101010
echoContent yellow "VMess+TLS+HTTPUpgrade \c"
10111011
fi
10121012
if echo ${currentInstallProtocolType} | grep -q ",12,"; then
1013-
echoContent yellow "VLESS+XHTTP \c"
1013+
echoContent yellow "VLESS+Reality+XHTTP \c"
10141014
fi
10151015
if echo ${currentInstallProtocolType} | grep -q ",13,"; then
10161016
echoContent yellow "AnyTLS \c"
@@ -2778,7 +2778,7 @@ initXrayClients() {
27782778
fi
27792779
# VLESS XHTTP
27802780
if echo "${type}" | grep -q ",12,"; then
2781-
currentUser="{\"id\":\"${uuid}\",\"email\":\"${email}-VLESS_XHTTP\"}"
2781+
currentUser="{\"id\":\"${uuid}\",\"email\":\"${email}-VLESS_Reality_XHTTP\"}"
27822782
users=$(echo "${users}" | jq -r ". +=[${currentUser}]")
27832783
fi
27842784
# trojan grpc
@@ -3966,7 +3966,7 @@ EOF
39663966
elif [[ -z "$3" ]]; then
39673967
rm /etc/v2ray-agent/xray/conf/03_VLESS_WS_inbounds.json >/dev/null 2>&1
39683968
fi
3969-
# VLESS_XHTTP_TLS
3969+
# VLESS_Reality_XHTTP_TLS
39703970
if echo "${selectCustomInstallType}" | grep -q ",12," || [[ "$1" == "all" ]]; then
39713971
initXrayXHTTPort
39723972
initRealityClientServersName
@@ -4896,7 +4896,7 @@ EOF
48964896
vless://${id}@$(getPublicIP):${port}?encryption=none&security=reality&type=xhttp&sni=${xrayVLESSRealityXHTTPServerName}&fp=chrome&path=${path}&pbk=${currentRealityXHTTPPublicKey}&sid=6ba85179e30d4fc2#${email}
48974897
EOF
48984898
echoContent yellow " ---> 二维码 VLESS(VLESS+reality+XHTTP)"
4899-
echoContent green " https://api.qrserver.com/v1/create-qr-code/?size=400x400&data=vless%3A%2F%2F${id}%40$(getPublicIP)%3A${port}%3Fencryption%3Dnone%26security%3Dreality%26type%3Dtcp%26sni%3D${xrayVLESSRealityXHTTPServerName}%26fp%3Dchrome%26path%3D${path}%26host%3D${xrayVLESSRealityXHTTPServerName}%26pbk%3D${currentRealityXHTTPPublicKey}%26sid%3D6ba85179e30d4fc2%23${email}\n"
4899+
echoContent green " https://api.qrserver.com/v1/create-qr-code/?size=400x400&data=vless%3A%2F%2F${id}%40$(getPublicIP)%3A${port}%3Fencryption%3Dnone%26security%3Dreality%26type%3Dxhttp%26sni%3D${xrayVLESSRealityXHTTPServerName}%26fp%3Dchrome%26path%3D${path}%26host%3D${xrayVLESSRealityXHTTPServerName}%26pbk%3D${currentRealityXHTTPPublicKey}%26sid%3D6ba85179e30d4fc2%23${email}\n"
49004900
elif
49014901
[[ "${type}" == "vlessgrpc" ]]
49024902
then
@@ -5458,9 +5458,9 @@ showAccounts() {
54585458
done < <(echo "${currentCDNAddress}" | tr ',' '\n')
54595459
done
54605460
fi
5461-
# VLESS XHTTP
5461+
# VLESS Reality XHTTP
54625462
if echo ${currentInstallProtocolType} | grep -q ",12,"; then
5463-
echoContent skyBlue "\n================================ VLESS XHTTP TLS [仅CDN推荐] ================================\n"
5463+
echoContent skyBlue "\n================================ VLESS Reality XHTTP TLS [仅CDN推荐] ================================\n"
54645464

54655465
jq .inbounds[0].settings.clients//.inbounds[0].users ${configPath}12_VLESS_XHTTP_inbounds.json | jq -c '.[]' | while read -r user; do
54665466
local email=
@@ -8057,7 +8057,7 @@ customXrayInstall() {
80578057
echoContent yellow "5.VLESS+TLS+gRPC[仅CDN推荐]"
80588058
echoContent yellow "7.VLESS+Reality+uTLS+Vision[推荐]"
80598059
# echoContent yellow "8.VLESS+Reality+gRPC"
8060-
echoContent yellow "12.VLESS+XHTTP+TLS"
8060+
echoContent yellow "12.VLESS+Reality+XHTTP+TLS"
80618061
read -r -p "请选择[多选],[例如:1,2,3]:" selectCustomInstallType
80628062
echoContent skyBlue "--------------------------------------------------------------"
80638063
if echo "${selectCustomInstallType}" | grep -q ""; then
@@ -9546,7 +9546,7 @@ menu() {
95469546
echoContent red "\n=============================================================="
95479547
echoContent green "原作者:mack-a"
95489548
echoContent green "作者:Wizard89"
9549-
echoContent green "当前版本:v3.2.31"
9549+
echoContent green "当前版本:v3.2.32"
95509550
echoContent green "Github:https://github.com/Wizard89/v2ray-agent"
95519551
echoContent green "描述:八合一共存脚本\c"
95529552
showInstallStatus

0 commit comments

Comments
 (0)