Fixed bug in onvifprobe

The arguments for "/usr/bin/zmonvif-probe.pl" was always `probe 1.1,1.2 1` with the last argument always being `1` instead of the network interface name selected in the menu.
This change fixes this issue by using the selected interface name instead of the boolean return value of the `isset()` function.
This commit is contained in:
Xulunix 2021-06-03 02:26:24 +02:00 committed by Isaac Connor
parent 4f3552a3e9
commit a5341beaa5
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ function execONVIF($cmd) {
function probeCameras($localIp) {
$cameras = array();
$lines = @execONVIF('probe 1.1,1.2'.(isset($_REQUEST['interface']) ? ' '.isset($_REQUEST['interface']) : '' ));
$lines = @execONVIF('probe 1.1,1.2'.(isset($_REQUEST['interface']) ? ' '.$_REQUEST['interface'] : '' ));
if ( $lines ) {
foreach ( $lines as $line ) {
$line = rtrim($line);