chore: 等待解析生效时长可自定义

This commit is contained in:
xiaojunnuo
2025-05-06 11:04:02 +08:00
parent d35d9c17c5
commit 826be45b6a
3 changed files with 16 additions and 2 deletions
+3 -2
View File
@@ -234,6 +234,7 @@ export default async (client, userOpts) => {
throw new CancelError("用户取消");
}
const waitDnsDiffuseTime = opts.waitDnsDiffuseTime || 30;
try {
// eslint-disable-next-line no-await-in-loop
await runPromisePa(challengePromises);
@@ -242,8 +243,8 @@ export default async (client, userOpts) => {
await wait(60 * 1000);
} else {
await runPromisePa(localVerifyTasks, 1000);
log("本地校验完成,等待30s")
await wait(30 * 1000)
log(`本地校验完成,等待${waitDnsDiffuseTime}s`)
await wait(waitDnsDiffuseTime * 1000)
}
log("开始向提供商请求挑战验证");