mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 增加个性化安装判断、解除sing-box任意门等分流限制
parent
fbcccaeeb6
commit
9555952bc3
22
install.sh
22
install.sh
|
@ -6395,29 +6395,25 @@ routingToolsMenu() {
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
if [[ -n "${singBoxConfigPath}" ]]; then
|
if [[ -n "${singBoxConfigPath}" ]]; then
|
||||||
echoContent red "\n ---> 此功能仅支持Xray-core内核,请等待后续更新"
|
echoContent red "\n ---> 此功能不支持Hysteria2、Tuic"
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
dokodemoDoorRouting 1
|
dokodemoDoorRouting 1
|
||||||
;;
|
;;
|
||||||
5)
|
5)
|
||||||
if [[ -n "${singBoxConfigPath}" ]]; then
|
if [[ -n "${singBoxConfigPath}" ]]; then
|
||||||
echoContent red "\n ---> 此功能仅支持Xray-core内核,请等待后续更新"
|
echoContent red "\n ---> 此功能不支持Hysteria2、Tuic"
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
dnsRouting 1
|
dnsRouting 1
|
||||||
;;
|
;;
|
||||||
6)
|
6)
|
||||||
if [[ -n "${singBoxConfigPath}" ]]; then
|
if [[ -n "${singBoxConfigPath}" ]]; then
|
||||||
echoContent red "\n ---> 此功能仅支持Xray-core内核,请等待后续更新"
|
echoContent red "\n ---> 此功能不支持Hysteria2、Tuic"
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
vmessWSRouting 1
|
vmessWSRouting 1
|
||||||
;;
|
;;
|
||||||
7)
|
7)
|
||||||
if [[ -n "${singBoxConfigPath}" ]]; then
|
if [[ -n "${singBoxConfigPath}" ]]; then
|
||||||
echoContent red "\n ---> 此功能仅支持Xray-core内核,请等待后续更新"
|
echoContent red "\n ---> 此功能不支持Hysteria2、Tuic"
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
sniRouting 1
|
sniRouting 1
|
||||||
;;
|
;;
|
||||||
|
@ -6944,6 +6940,10 @@ customSingBoxInstall() {
|
||||||
echoContent red " ---> 请使用英文逗号分隔"
|
echoContent red " ---> 请使用英文逗号分隔"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
if [[ "${selectCustomInstallType}" != "10" ]] && ((${#selectCustomInstallType} >= 2)) && ! echo "${selectCustomInstallType}" | grep -q ","; then
|
||||||
|
echoContent red " ---> 多选请使用英文逗号分隔"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
if [[ "${selectCustomInstallType: -1}" != "," ]]; then
|
if [[ "${selectCustomInstallType: -1}" != "," ]]; then
|
||||||
selectCustomInstallType="${selectCustomInstallType},"
|
selectCustomInstallType="${selectCustomInstallType},"
|
||||||
fi
|
fi
|
||||||
|
@ -6997,6 +6997,10 @@ customXrayInstall() {
|
||||||
echoContent red " ---> 请使用英文逗号分隔"
|
echoContent red " ---> 请使用英文逗号分隔"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
if ((${#selectCustomInstallType} >= 2)) && ! echo "${selectCustomInstallType}" | grep -q ","; then
|
||||||
|
echoContent red " ---> 多选请使用英文逗号分隔"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
if [[ "${selectCustomInstallType: -1}" != "," ]]; then
|
if [[ "${selectCustomInstallType: -1}" != "," ]]; then
|
||||||
selectCustomInstallType="${selectCustomInstallType},"
|
selectCustomInstallType="${selectCustomInstallType},"
|
||||||
fi
|
fi
|
||||||
|
@ -8428,7 +8432,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.1.23"
|
echoContent green "当前版本:v3.1.24"
|
||||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:八合一共存脚本\c"
|
echoContent green "描述:八合一共存脚本\c"
|
||||||
showInstallStatus
|
showInstallStatus
|
||||||
|
|
Loading…
Reference in New Issue