From 35cd2817248ce751f83fbeec95e60d111f89f2d9 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Tue, 30 Dec 2025 13:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9create=5Fconfig.sh=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E5=85=81=E8=AE=B8=E9=82=AE=E7=AE=B1=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E7=95=99=E7=A9=BA=E5=B9=B6=E8=AE=BE=E7=BD=AE=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/create_config.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/create_config.sh b/bin/create_config.sh index 7d0889b..ab2f61d 100644 --- a/bin/create_config.sh +++ b/bin/create_config.sh @@ -16,11 +16,10 @@ create_config_with_tls_cert() { bash "$script_dir/update_obfs_password.sh" # 获取邮箱 - read -p "请输入你的邮箱: " user_email - while [[ -z "$user_email" ]]; do - echo "[错误] 邮箱不能为空" - read -p "请输入你的邮箱: " user_email - done + read -p "请输入你的邮箱(可留空): " user_email + if [[ -z "$user_email" ]]; then + user_email="example@example.com" + fi # 获取域名 read -p "请输入你的域名 (例如: example.com): " user_domain