roster-server
Advanced tools
+1
-1
| { | ||
| "name": "roster-server", | ||
| "version": "2.3.14", | ||
| "version": "2.3.16", | ||
| "description": "👾 RosterServer - A domain host router to host multiple HTTPS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -387,9 +387,30 @@ 'use strict'; | ||
| await acme.init(dirUrl).catch(function(err) { | ||
| log.error( | ||
| "ACME init failed (directory may be down or directoryUrl wrong):", | ||
| err.message | ||
| ); | ||
| throw err; | ||
| }); | ||
| var maxRetries = 3; | ||
| var lastErr; | ||
| for (var attempt = 1; attempt <= maxRetries; attempt++) { | ||
| try { | ||
| await acme.init(dirUrl); | ||
| lastErr = null; | ||
| break; | ||
| } catch (err) { | ||
| lastErr = err; | ||
| log.error( | ||
| "ACME init attempt " + | ||
| attempt + | ||
| "/" + | ||
| maxRetries + | ||
| " failed (directory may be down or directoryUrl wrong):", | ||
| err.message | ||
| ); | ||
| if (attempt < maxRetries) { | ||
| await new Promise(function(resolve) { | ||
| setTimeout(resolve, 1000 * attempt); | ||
| }); | ||
| } | ||
| } | ||
| } | ||
| if (lastErr) { | ||
| delete caches[dirUrl]; | ||
| throw lastErr; | ||
| } | ||
@@ -396,0 +417,0 @@ caches[dirUrl] = { |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
570189
0.12%9694
0.22%