mirror of https://github.com/aredn/aredn.git
bugfix: wscan bogus hostname lookup when multiple entries in arp table
This commit is contained in:
parent
7652624d14
commit
2613a8507c
|
@ -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 "" )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue