Skip to content

Commit

Permalink
Update dispatcher.php - incorrect index
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrlawrence authored Jan 27, 2024
1 parent 653049b commit af34215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit af34215

Please sign in to comment.