This commit is contained in:
Olia Lisa 2025-08-16 11:43:24 +08:00
parent e3801150c0
commit 0319d932e3

View File

@ -14,6 +14,12 @@ if [[ -z "$dest" ]]; then
exit 1
fi
# 如果未指定端口号默认加上 :443
if [[ "$dest" != *:* ]]; then
dest="${dest}:443"
echo "未检测到端口号,已自动添加默认端口 :443"
fi
domain=$(echo "$dest" | awk -F ':' '{print $1}')