mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 00:50:29 +00:00
add quotes to $MACPattern
This commit is contained in:
parent
c2cff9d947
commit
f0db12664d
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ if ($arrHostapdConf['WifiAPEnable'] == 1) {
|
|||
} else {
|
||||
$client_iface = RASPI_WIFI_CLIENT_INTERFACE;
|
||||
}
|
||||
$MACPattern = '([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}';
|
||||
$MACPattern = '"([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}"';
|
||||
if ($arrHostapdConf['BridgedEnable'] == 1) {
|
||||
$moreLink = "index.php?page=hostapd_conf";
|
||||
exec('arp -i '.$client_iface.' -a | grep -E $(iw dev '.$client_iface.' station dump | grep -oE '.$MACPattern.' | paste -sd "|") | tr -d "()" | awk -F" " \'{print $7 " " $4 " " $2 " " $1}\'', $clients);
|
||||
|
|
Loading…
Reference in a new issue