bugfix: wscan bogus hostname lookup when multiple entries in arp table

This commit is contained in:
AE6XE 2015-07-19 18:53:50 -07:00
parent 7652624d14
commit 2613a8507c
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ while(1)
{
pushAP($signal, $mychan, $key, $myssid, $host, $mac, $mode);
$mac = $1;
$ip = `grep $mac /proc/net/arp`;
$ip = `grep $mac /proc/net/arp | egrep "^10.*\$" | tail -1`;
$mac = uc $mac;
if ( $ip ne "" )
{