Add timeout setting for cURL requests in CheckIP method

This commit is contained in:
jhartworks
2026-03-02 13:09:11 +01:00
parent a1743dbaa4
commit 0800b12a7f
+1
View File
@@ -532,6 +532,7 @@ class AwtrixSettings extends IPSModule {
$ch = curl_init($url); $ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPGET, true); curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_TIMEOUT_MS, 2500);
$response = curl_exec($ch); $response = curl_exec($ch);
$error = curl_error($ch); $error = curl_error($ch);