mirror of https://github.com/aredn/aredn.git
Merge branch 'wscan' into release-3.15.1.0
bugfix: wscan bogus hostname lookup when multiple entries in arp table
This commit is contained in:
commit
92dc43209f
|
@ -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