From af3421594944503e60650851dca2f53fb523a409 Mon Sep 17 00:00:00 2001 From: ccrlawrence Date: Sat, 27 Jan 2024 23:42:19 +0000 Subject: [PATCH] Update dispatcher.php - incorrect index --- dispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dispatcher.php b/dispatcher.php index 5deac4c..63850eb 100644 --- a/dispatcher.php +++ b/dispatcher.php @@ -173,7 +173,7 @@ function videopicture($camIPs, $camAuths, $camVersions) if (($camVersions[$index] ?? null) == 1) { $ch = curl_init(); - $url = 'http://'.$camIPs[$camIndex].'/ISAPI/Streaming/Channels/101/picture'; + $url = 'http://'.$ip.'/ISAPI/Streaming/Channels/101/picture'; curl_setopt($ch, CURLOPT_URL, $url); // curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);