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