This commit is contained in:
Olia Lisa 2026-01-11 16:46:53 +08:00
parent 63ad2fda54
commit 57ba8f7002

View File

@ -12,10 +12,9 @@ update_reality_dest(){
local dest local dest
read -p "请输入新的dest地址[当前地址: $old_dest]: " dest read -p "请输入新的dest地址[当前地址: $old_dest]: " dest
# 如果输入为空,退出脚本 # 如果输入为空, 不修改直接退出
if [[ -z "$dest" ]]; then if [[ -z "$dest" ]]; then
echo "输入dest为空退出脚本" exit 0
exit 1
fi fi
# 如果未指定端口号,默认加上 :443 # 如果未指定端口号,默认加上 :443