From 4ecea2c917071caa09371960f1fcfc43c1f4c1c4 Mon Sep 17 00:00:00 2001 From: ddrayko <189259481+ddrayko@users.noreply.github.com> Date: Sun, 26 Jul 2026 13:40:27 +0000 Subject: [PATCH] Potential fix for code scanning alert no. 2: Disabling certificate validation Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 85b8d7a..915e751 100644 --- a/server.js +++ b/server.js @@ -77,7 +77,7 @@ function pingUrl(url) { try { const start = Date.now(); const mod = url.startsWith('https') ? https : http; - const options = { timeout: 5000, rejectUnauthorized: false }; + const options = { timeout: 5000, rejectUnauthorized: true }; const req = mod.get(url, options, (res) => { const ms = Date.now() - start; resolve({ ok: true, ms });