aboutsummaryrefslogtreecommitdiffstats
path: root/collect-wireless-mac.capsman
diff options
context:
space:
mode:
Diffstat (limited to 'collect-wireless-mac.capsman')
-rw-r--r--collect-wireless-mac.capsman2
1 files changed, 1 insertions, 1 deletions
diff --git a/collect-wireless-mac.capsman b/collect-wireless-mac.capsman
index cca29e8..bda3415 100644
--- a/collect-wireless-mac.capsman
+++ b/collect-wireless-mac.capsman
@@ -18,7 +18,7 @@
:foreach RegTbl in=[ / caps-man registration-table find ] do={
:local Mac [ / caps-man registration-table get $RegTbl mac-address ];
- :local AccessList [ :pick [ / caps-man access-list find where mac-address=$Mac ] 0 ];
+ :local AccessList ([ / caps-man access-list find where mac-address=$Mac ]->0);
:if ([ :len $AccessList ] = 0) do={
:local HostName "no dhcp lease";
:local Address "no dhcp lease";