feat(脚本): 增加个性化安装判断、解除sing-box任意门等分流限制

pull/909/head^2
mack-a 2024-01-03 22:48:10 +08:00
parent fbcccaeeb6
commit 9555952bc3
1 changed files with 13 additions and 9 deletions

View File

@ -6395,29 +6395,25 @@ routingToolsMenu() {
;;
4)
if [[ -n "${singBoxConfigPath}" ]]; then
echoContent red "\n ---> 此功能仅支持Xray-core内核请等待后续更新"
exit 0
echoContent red "\n ---> 此功能不支持Hysteria2、Tuic"
fi
dokodemoDoorRouting 1
;;
5)
if [[ -n "${singBoxConfigPath}" ]]; then
echoContent red "\n ---> 此功能仅支持Xray-core内核请等待后续更新"
exit 0
echoContent red "\n ---> 此功能不支持Hysteria2、Tuic"
fi
dnsRouting 1
;;
6)
if [[ -n "${singBoxConfigPath}" ]]; then
echoContent red "\n ---> 此功能仅支持Xray-core内核请等待后续更新"
exit 0
echoContent red "\n ---> 此功能不支持Hysteria2、Tuic"
fi
vmessWSRouting 1
;;
7)
if [[ -n "${singBoxConfigPath}" ]]; then
echoContent red "\n ---> 此功能仅支持Xray-core内核请等待后续更新"
exit 0
echoContent red "\n ---> 此功能不支持Hysteria2、Tuic"
fi
sniRouting 1
;;
@ -6944,6 +6940,10 @@ customSingBoxInstall() {
echoContent red " ---> 请使用英文逗号分隔"
exit 0
fi
if [[ "${selectCustomInstallType}" != "10" ]] && ((${#selectCustomInstallType} >= 2)) && ! echo "${selectCustomInstallType}" | grep -q ","; then
echoContent red " ---> 多选请使用英文逗号分隔"
exit 0
fi
if [[ "${selectCustomInstallType: -1}" != "," ]]; then
selectCustomInstallType="${selectCustomInstallType},"
fi
@ -6997,6 +6997,10 @@ customXrayInstall() {
echoContent red " ---> 请使用英文逗号分隔"
exit 0
fi
if ((${#selectCustomInstallType} >= 2)) && ! echo "${selectCustomInstallType}" | grep -q ","; then
echoContent red " ---> 多选请使用英文逗号分隔"
exit 0
fi
if [[ "${selectCustomInstallType: -1}" != "," ]]; then
selectCustomInstallType="${selectCustomInstallType},"
fi
@ -8428,7 +8432,7 @@ menu() {
cd "$HOME" || exit
echoContent red "\n=============================================================="
echoContent green "作者mack-a"
echoContent green "当前版本v3.1.23"
echoContent green "当前版本v3.1.24"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus