Skip to content

Commit

Permalink
server-ssl
Browse files Browse the repository at this point in the history
checkNodeForUpdates makes 3 attempts and fails silently
  • Loading branch information
FirstTimeEZ committed Dec 28, 2024
1 parent 50d3f98 commit cef323a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "server-ssl",
"author": "FirstTimeEZ",
"version": "50.0.1",
"version": "50.0.2",
"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",
"main": "template; do not import; read the Getting Started of the README, maybe you want to use: lets-encrypt-acme-client",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions ssl/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ export const STATE = {
},
checkNodeForUpdates: async () => {
if (STATE.optNoVersionCheck !== true) {
const response = await fetchAndRetryUntilOk(STATE.NODE_URL, { method: 'GET', redirect: 'follow' });
const response = await fetchAndRetryUntilOk(STATE.NODE_URL, { method: 'GET', redirect: 'follow' }, 3, true);

if (response.ok) {
if (response && response.ok) {
const split = response.url.split("/");

if (split.length === STATE.NODE_URL_SPLITS) {
Expand Down

0 comments on commit cef323a

Please sign in to comment.