mirror of
https://github.com/kejilion/sh.git
synced 2026-06-05 10:56:05 +08:00
Update ssh_tool.sh
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user