Skip to content

Commit 0bd3474

Browse files
committed
fix(脚本): 修复xhttp扫码配置
1 parent 1ca7059 commit 0bd3474

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

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"
@@ -2779,7 +2779,7 @@ initXrayClients() {
27792779
fi
27802780
# VLESS XHTTP
27812781
if echo "${type}" | grep -q ",12,"; then
2782-
currentUser="{\"id\":\"${uuid}\",\"email\":\"${email}-VLESS_XHTTP\"}"
2782+
currentUser="{\"id\":\"${uuid}\",\"email\":\"${email}-VLESS_Reality_XHTTP\"}"
27832783
users=$(echo "${users}" | jq -r ". +=[${currentUser}]")
27842784
fi
27852785
# trojan grpc
@@ -3967,7 +3967,7 @@ EOF
39673967
elif [[ -z "$3" ]]; then
39683968
rm /etc/v2ray-agent/xray/conf/03_VLESS_WS_inbounds.json >/dev/null 2>&1
39693969
fi
3970-
# VLESS_XHTTP_TLS
3970+
# VLESS_Reality_XHTTP_TLS
39713971
if echo "${selectCustomInstallType}" | grep -q ",12," || [[ "$1" == "all" ]]; then
39723972
initXrayXHTTPort
39733973
initRealityClientServersName
@@ -4861,7 +4861,7 @@ EOF
48614861
vless://${id}@$(getPublicIP):${port}?encryption=none&security=reality&type=xhttp&sni=${xrayVLESSRealityXHTTPServerName}&fp=chrome&path=${path}&pbk=${currentRealityXHTTPPublicKey}&sid=6ba85179e30d4fc2#${email}
48624862
EOF
48634863
echoContent yellow " ---> 二维码 VLESS(VLESS+reality+XHTTP)"
4864-
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"
4864+
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"
48654865

48664866
elif
48674867
[[ "${type}" == "vlessgrpc" ]]
@@ -5427,9 +5427,9 @@ showAccounts() {
54275427
done < <(echo "${currentCDNAddress}" | tr ',' '\n')
54285428
done
54295429
fi
5430-
# VLESS XHTTP
5430+
# VLESS Reality XHTTP
54315431
if echo ${currentInstallProtocolType} | grep -q ",12,"; then
5432-
echoContent skyBlue "\n================================ VLESS XHTTP TLS [仅CDN推荐] ================================\n"
5432+
echoContent skyBlue "\n================================ VLESS Reality XHTTP TLS [仅CDN推荐] ================================\n"
54335433

54345434
jq .inbounds[0].settings.clients//.inbounds[0].users ${configPath}12_VLESS_XHTTP_inbounds.json | jq -c '.[]' | while read -r user; do
54355435
local email=
@@ -8023,7 +8023,7 @@ customXrayInstall() {
80238023
echoContent yellow "5.VLESS+TLS+gRPC[仅CDN推荐]"
80248024
echoContent yellow "7.VLESS+Reality+uTLS+Vision[推荐]"
80258025
# echoContent yellow "8.VLESS+Reality+gRPC"
8026-
echoContent yellow "12.VLESS+XHTTP+TLS"
8026+
echoContent yellow "12.VLESS+Reality+XHTTP+TLS"
80278027
read -r -p "请选择[多选],[例如:1,2,3]:" selectCustomInstallType
80288028
echoContent skyBlue "--------------------------------------------------------------"
80298029
if echo "${selectCustomInstallType}" | grep -q ""; then
@@ -9512,7 +9512,7 @@ menu() {
95129512
cd "$HOME" || exit
95139513
echoContent red "\n=============================================================="
95149514
echoContent green "作者:mack-a"
9515-
echoContent green "当前版本:v3.4.34"
9515+
echoContent green "当前版本:v3.4.35"
95169516
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
95179517
echoContent green "描述:八合一共存脚本\c"
95189518
showInstallStatus

0 commit comments

Comments
 (0)