mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 添加VLESS->(h2)->trojan gRPC
parent
54c3f9592f
commit
23f55b0bdc
26
install.sh
26
install.sh
|
@ -2210,6 +2210,10 @@ EOF
|
||||||
|
|
||||||
# trojan_grpc
|
# trojan_grpc
|
||||||
if echo ${selectCustomInstallType} | grep -q 2 || [[ "$1" == "all" ]]; then
|
if echo ${selectCustomInstallType} | grep -q 2 || [[ "$1" == "all" ]]; then
|
||||||
|
if ! echo ${selectCustomInstallType} | grep -q 5;then
|
||||||
|
fallbacksList=${fallbacksList//31302/31304}
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF >/etc/v2ray-agent/xray/conf/04_trojan_gRPC_inbounds.json
|
cat <<EOF >/etc/v2ray-agent/xray/conf/04_trojan_gRPC_inbounds.json
|
||||||
{
|
{
|
||||||
"inbounds": [
|
"inbounds": [
|
||||||
|
@ -2648,16 +2652,16 @@ showAccounts() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# VMess TCP
|
# VMess TCP
|
||||||
if echo ${currentInstallProtocolType} | grep -q 2 || [[ -z "${currentInstallProtocolType}" ]]; then
|
# if echo ${currentInstallProtocolType} | grep -q 2 || [[ -z "${currentInstallProtocolType}" ]]; then
|
||||||
echoContent skyBlue "\n================================= VMess TCP TLS =================================\n"
|
# echoContent skyBlue "\n================================= VMess TCP TLS =================================\n"
|
||||||
|
#
|
||||||
# cat ${configPath}04_VMess_TCP_inbounds.json | jq .inbounds[0].settings.clients | jq -c '.[]'
|
# # cat ${configPath}04_VMess_TCP_inbounds.json | jq .inbounds[0].settings.clients | jq -c '.[]'
|
||||||
jq .inbounds[0].settings.clients ${configPath}04_VMess_TCP_inbounds.json | jq -c '.[]' | while read -r user; do
|
# jq .inbounds[0].settings.clients ${configPath}04_VMess_TCP_inbounds.json | jq -c '.[]' | while read -r user; do
|
||||||
echoContent skyBlue "\n ---> 帐号:$(echo "${user}" | jq -r .email )_$(echo "${user}" | jq -r .id)"
|
# echoContent skyBlue "\n ---> 帐号:$(echo "${user}" | jq -r .email )_$(echo "${user}" | jq -r .id)"
|
||||||
echo
|
# echo
|
||||||
defaultBase64Code vmesstcp $(echo "${user}" | jq .email) $(echo "${user}" | jq .id) "${currentHost}:${currentPort}" "${currentPath}tcp" "${currentHost}"
|
# defaultBase64Code vmesstcp $(echo "${user}" | jq .email) $(echo "${user}" | jq .id) "${currentHost}:${currentPort}" "${currentPath}tcp" "${currentHost}"
|
||||||
done
|
# done
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# VMess WS
|
# VMess WS
|
||||||
if echo ${currentInstallProtocolType} | grep -q 3 || [[ -z "${currentInstallProtocolType}" ]]; then
|
if echo ${currentInstallProtocolType} | grep -q 3 || [[ -z "${currentInstallProtocolType}" ]]; then
|
||||||
|
@ -3959,7 +3963,7 @@ customXrayInstall() {
|
||||||
handleNginx stop
|
handleNginx stop
|
||||||
initNginxConfig 4
|
initNginxConfig 4
|
||||||
# 随机path
|
# 随机path
|
||||||
if echo "${selectCustomInstallType}" | grep -q 1 || echo "${selectCustomInstallType}" | grep -q 3 || echo "${selectCustomInstallType}" | grep -q 4 || echo "${selectCustomInstallType}" | grep -q 5; then
|
if echo "${selectCustomInstallType}" | grep -q 1 || echo "${selectCustomInstallType}" | grep -q 2 || echo "${selectCustomInstallType}" | grep -q 3 || echo "${selectCustomInstallType}" | grep -q 5; then
|
||||||
randomPathFunction 5
|
randomPathFunction 5
|
||||||
customCDNIP 6
|
customCDNIP 6
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue