inetChecksite() fix timeout
This commit is contained in:
parent
93d9141000
commit
c2ffa57a14
@ -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) |
|
||||
|
||||
@ -57,6 +57,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.23.19</th>
|
||||
<td>2024-12-24</td>
|
||||
<td><span class="code">inetChecksite()</span> fix timeout</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.23.19</th>
|
||||
<td>2024-12-24</td>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png" alt="logo">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.23.19</span></div>
|
||||
<div class="version">New Version: <span id="version">5.23.20</span></div>
|
||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||
</div>
|
||||
<div class="down">
|
||||
|
||||
@ -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', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user