mirror of
https://github.com/certd/certd.git
synced 2026-04-26 22:07:29 +08:00
🔱: [acme] sync upgrade with 10 commits [trident-sync]
Bump v5.2.0 - package.json Bump v5.2.0 yarn -> npm CHANGELOG and tests for #76 Fix tests Update auto.js: wait for all challenge promises before exit Fixes #75 CHANGELOG and tests for #66 Fix lint errors Allow self-signed or invalid certificate when evaluating verifyHttpChallenge
This commit is contained in:
@@ -165,8 +165,19 @@ module.exports = async function(client, userOpts) {
|
||||
}
|
||||
});
|
||||
|
||||
log('[auto] Waiting for challenge valid status');
|
||||
await Promise.all(challengePromises);
|
||||
|
||||
/**
|
||||
* Wait for all challenge promises to settle
|
||||
*/
|
||||
|
||||
try {
|
||||
log('[auto] Waiting for challenge valid status');
|
||||
await Promise.all(challengePromises);
|
||||
}
|
||||
catch (e) {
|
||||
await Promise.allSettled(challengePromises);
|
||||
throw e;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user