From c2ffa57a146cf8a9b3733185043265559ee78342 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Tue, 24 Dec 2024 13:17:34 +0100 Subject: [PATCH] inetChecksite() fix timeout --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/util.js | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb8795a..18ad8c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.23.20 | 2024-12-24 | `cpu()` fix timeout | | 5.23.19 | 2024-12-24 | `cpu()` refactored using internal node functions | | 5.23.18 | 2024-12-24 | `cpu()` Handle RISC-V CPU Manufacturer and Brand | | 5.23.17 | 2024-12-23 | `wifiConnections()` refactored - Sequoia compatibel (macOS) | diff --git a/docs/history.html b/docs/history.html index 7d7498c..402db4e 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.23.19 + 2024-12-24 + inetChecksite() fix timeout + 5.23.19 2024-12-24 diff --git a/docs/index.html b/docs/index.html index 28e26db..a84b89e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.23.19
+
New Version: 5.23.20
diff --git a/lib/util.js b/lib/util.js index bd819f0..e595613 100644 --- a/lib/util.js +++ b/lib/util.js @@ -2487,7 +2487,7 @@ function checkWebsite(url, timeout = 5000) { const http = ((url.startsWith('https:') || url.indexOf(':443/') > 0 || url.indexOf(':8443/') > 0) ? require('https') : require('http')); const t = Date.now(); return new Promise((resolve) => { - http + const request = http .get(url, { rejectUnauthorized: false }, function (res) { res.on('data', () => { }); res.on('end', () => {