Ignore unparseable arp output.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2862 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2009-05-06 09:49:30 +00:00
parent d3787426f9
commit 282a542a6a
1 changed files with 2 additions and 1 deletions

View File

@ -221,7 +221,8 @@ if ( $status )
foreach ( $output as $line ) foreach ( $output as $line )
{ {
if ( !preg_match( '/^(\S+) \(([\d.]+)\) at ([0-9a-f:]+)/', $line, $matches ) ) if ( !preg_match( '/^(\S+) \(([\d.]+)\) at ([0-9a-f:]+)/', $line, $matches ) )
die( "Can't parse command output '$line'" ); next;
//die( "Can't parse command output '$line'" );
$host = $matches[1]; $host = $matches[1];
$ip = $matches[2]; $ip = $matches[2];
if ( !$host || $host == '?' ) if ( !$host || $host == '?' )