Skip to content

Commit

Permalink
feat(脚本): 增加个性化安装判断、解除sing-box任意门等分流限制
Browse files Browse the repository at this point in the history
  • Loading branch information
mack-a committed Jan 3, 2024
1 parent fbcccae commit 9555952
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 "Github:https://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus
Expand Down

0 comments on commit 9555952

Please sign in to comment.