Update ssh_tool.sh

This commit is contained in:
eooce
2024-05-14 16:47:24 +08:00
committed by GitHub
parent 6f47bd5bcc
commit 4d13cef9e0

View File

@@ -5342,7 +5342,7 @@ EOF
if [[ -n $(ss -tunlp | grep -w udp | awk '{print $5}' | sed 's/.*://g' | grep -w "$port") ]]; then
echo -e $'\033[1;91m${port}端口已经被其他程序占用,请更换端口重试!\033[0m'
read -p "设置 reality 端口[1-65535](回车将使用随机端口):" port
[[ -z $PORT ]] && port=8880
[[ -z $PORT ]] && port=$(shuf -i 2000-65000 -n 1)
fi
done