Skip to content

Commit cef323a

Browse files
committed
server-ssl
checkNodeForUpdates makes 3 attempts and fails silently
1 parent 50d3f98 commit cef323a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "server-ssl",
33
"author": "FirstTimeEZ",
4-
"version": "50.0.1",
4+
"version": "50.0.2",
55
"description": "Node.js server that is SSL by default that can be used for development or production and can create and renew Lets Encrypt Certificates automatically using ACME, including wildcard certificates",
66
"main": "template; do not import; read the Getting Started of the README, maybe you want to use: lets-encrypt-acme-client",
77
"type": "module",

ssl/state.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ export const STATE = {
293293
},
294294
checkNodeForUpdates: async () => {
295295
if (STATE.optNoVersionCheck !== true) {
296-
const response = await fetchAndRetryUntilOk(STATE.NODE_URL, { method: 'GET', redirect: 'follow' });
296+
const response = await fetchAndRetryUntilOk(STATE.NODE_URL, { method: 'GET', redirect: 'follow' }, 3, true);
297297

298-
if (response.ok) {
298+
if (response && response.ok) {
299299
const split = response.url.split("/");
300300

301301
if (split.length === STATE.NODE_URL_SPLITS) {

0 commit comments

Comments
 (0)