Merge pull request #3275 from XuluniX/onvifprobe_interface

Fixed bug in onvifprobe interface selection
This commit is contained in:
Isaac Connor 2021-06-03 10:06:24 -04:00 committed by GitHub
commit 1b67074d35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ function execONVIF($cmd) {
function probeCameras($localIp) { function probeCameras($localIp) {
$cameras = array(); $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 ) { if ( $lines ) {
foreach ( $lines as $line ) { foreach ( $lines as $line ) {
$line = rtrim($line); $line = rtrim($line);