From 62c7e994655b22be443215e8d852d4e7cb0cd812 Mon Sep 17 00:00:00 2001 From: sunnybank101 <52540694+sunnybank101@users.noreply.github.com> Date: Fri, 12 Jul 2019 11:35:25 +0100 Subject: [PATCH] arp can take for ever added -n to the arp command to speed it up! --- includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/dashboard.php b/includes/dashboard.php index 32de76d9..0ee82b05 100755 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -239,7 +239,7 @@ if ($arrHostapdConf['WifiAPEnable'] == 1) { } else { $client_iface = RASPI_WIFI_CLIENT_INTERFACE; } -exec('cat '.RASPI_DNSMASQ_LEASES.'| grep -E $(arp -i '.$client_iface.' | grep -oE "(([0-9]|[a-f]|[A-F]){2}:){5}([0-9]|[a-f]|[A-F]){2}" | tr "\n" "\|" | sed "s/.$//")', $clients); +exec('cat '.RASPI_DNSMASQ_LEASES.'| grep -E $(arp -i '.$client_iface.' -n | grep -oE "(([0-9]|[a-f]|[A-F]){2}:){5}([0-9]|[a-f]|[A-F]){2}" | tr "\n" "\|" | sed "s/.$//")', $clients); foreach ($clients as $client) { $client_items = explode(' ', $client); echo '