From b2190d3588a4019464de7ad9184a9cc7253fe5e5 Mon Sep 17 00:00:00 2001 From: Leon <62660101+Oreomeow@users.noreply.github.com> Date: Thu, 19 Aug 2021 02:56:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/sh/v2p.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/sh/v2p.sh b/Scripts/sh/v2p.sh index 137d64d..ff0fb12 100644 --- a/Scripts/sh/v2p.sh +++ b/Scripts/sh/v2p.sh @@ -227,7 +227,7 @@ check_port() { echo "正在检测端口:$1" netstat -tlpn | grep "\b$1\b" } -if [ "$port" != "2" ]; then +if [ "$NETWORK" = "bridge" ]; then while check_port $V2P_PORT; do echo -n -e "\e[31m端口:$V2P_PORT 被占用,请重新输入 webUI 端口:\e[0m" read V2P_PORT