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:
parent
4f3552a3e9
commit
a5341beaa5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue