feat(脚本): xray-core恢复VLESS gRPC

master v3.4.6
mack-a 2025-03-06 15:11:27 +08:00
parent 2322e1343b
commit 37bf807238
1 changed files with 28 additions and 28 deletions

View File

@ -4357,32 +4357,32 @@ EOF
rm /etc/v2ray-agent/xray/conf/05_VMess_WS_inbounds.json >/dev/null 2>&1 rm /etc/v2ray-agent/xray/conf/05_VMess_WS_inbounds.json >/dev/null 2>&1
fi fi
# VLESS_gRPC # VLESS_gRPC
# if echo "${selectCustomInstallType}" | grep -q ",5," || [[ "$1" == "all" ]]; then if echo "${selectCustomInstallType}" | grep -q ",5," || [[ "$1" == "all" ]]; then
# cat <<EOF >/etc/v2ray-agent/xray/conf/06_VLESS_gRPC_inbounds.json cat <<EOF >/etc/v2ray-agent/xray/conf/06_VLESS_gRPC_inbounds.json
#{ {
# "inbounds":[ "inbounds":[
# { {
# "port": 31301, "port": 31301,
# "listen": "127.0.0.1", "listen": "127.0.0.1",
# "protocol": "vless", "protocol": "vless",
# "tag":"VLESSGRPC", "tag":"VLESSGRPC",
# "settings": { "settings": {
# "clients": $(initXrayClients 5), "clients": $(initXrayClients 5),
# "decryption": "none" "decryption": "none"
# }, },
# "streamSettings": { "streamSettings": {
# "network": "grpc", "network": "grpc",
# "grpcSettings": { "grpcSettings": {
# "serviceName": "${customPath}grpc" "serviceName": "${customPath}grpc"
# } }
# } }
# } }
#] ]
#} }
#EOF EOF
# elif [[ -z "$3" ]]; then elif [[ -z "$3" ]]; then
# rm /etc/v2ray-agent/xray/conf/06_VLESS_gRPC_inbounds.json >/dev/null 2>&1 rm /etc/v2ray-agent/xray/conf/06_VLESS_gRPC_inbounds.json >/dev/null 2>&1
# fi fi
# VLESS Vision # VLESS Vision
if echo "${selectCustomInstallType}" | grep -q ",0," || [[ "$1" == "all" ]]; then if echo "${selectCustomInstallType}" | grep -q ",0," || [[ "$1" == "all" ]]; then
@ -8168,7 +8168,7 @@ customXrayInstall() {
# echoContent yellow "2.Trojan+TLS+gRPC[仅CDN推荐]" # echoContent yellow "2.Trojan+TLS+gRPC[仅CDN推荐]"
echoContent yellow "3.VMess+TLS+WS[仅CDN推荐]" echoContent yellow "3.VMess+TLS+WS[仅CDN推荐]"
echoContent yellow "4.Trojan+TLS[不推荐]" echoContent yellow "4.Trojan+TLS[不推荐]"
# echoContent yellow "5.VLESS+TLS+gRPC[仅CDN推荐]" echoContent yellow "5.VLESS+TLS+gRPC[仅CDN推荐]"
echoContent yellow "7.VLESS+Reality+uTLS+Vision[推荐]" echoContent yellow "7.VLESS+Reality+uTLS+Vision[推荐]"
# echoContent yellow "8.VLESS+Reality+gRPC" # echoContent yellow "8.VLESS+Reality+gRPC"
echoContent yellow "12.VLESS+XHTTP+TLS" echoContent yellow "12.VLESS+XHTTP+TLS"
@ -9770,7 +9770,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.5" echoContent green "当前版本v3.4.6"
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