From 0800b12a7f2c4b8581534392a36d32973122ceb0 Mon Sep 17 00:00:00 2001 From: jhartworks Date: Mon, 2 Mar 2026 13:09:11 +0100 Subject: [PATCH] Add timeout setting for cURL requests in CheckIP method --- Awtrix Settings/module.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Awtrix Settings/module.php b/Awtrix Settings/module.php index 0fa9b68..52e9dbf 100644 --- a/Awtrix Settings/module.php +++ b/Awtrix Settings/module.php @@ -532,7 +532,8 @@ class AwtrixSettings extends IPSModule { $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPGET, true); - + curl_setopt($ch, CURLOPT_TIMEOUT_MS, 2500); + $response = curl_exec($ch); $error = curl_error($ch);