From 8cfe91ccff817d19d4e539e0395ac2f7f524e7fe Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Wed, 5 Aug 2020 17:53:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=9A=8F=E6=9C=BA=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index f0574a6..7549654 100644 --- a/install.sh +++ b/install.sh @@ -294,12 +294,18 @@ installTLS(){ # 自定义路径 # todo 随机路径 - progressTools "yellow" "请输入自定义路径[例: alone],不需要斜杠,[回车]默认路径" + progressTools "yellow" "请输入自定义路径[例: alone],不需要斜杠,[回车]随机路径" read customPath if [[ ! -z "${customPath}" ]] then sed -i "s/alone/${customPath}/g" `grep alone -rl /etc/nginx/conf.d/alone.conf` + else + randomPath=`head -n 50 /dev/urandom|sed 's/[^a-z]//g'|strings -n 4|tr 'A-Z' 'a-z'|head -1` + if [[ ! -z "${randomPath}" ]] + then + sed -i "s/alone/${randomPath}/g" `grep alone -rl /etc/nginx/conf.d/alone.conf` + fi fi rm -rf /usr/share/nginx/html @@ -825,7 +831,7 @@ init(){ echoContent red "==============================================================" echoContent green "CDN+WebSocket+TLS+Nginx+伪装博客一键脚本" echoContent green "作者:mack-a" - echoContent green "Version:v1.0.6" + echoContent green "Version:v1.0.8" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "TG群:https://t.me/technologyshare" echoContent green "欢迎找我请求协助与反馈问题"