mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-12 19:14:27 +02:00
hotspot-to-wpa-cleanup: only match access-list with mac-address
This commit is contained in:
parent
c708832b69
commit
60aa553219
3 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@
|
|||
}
|
||||
|
||||
:foreach Client in=[ /caps-man/access-list/find where comment~"^hotspot-to-wpa:" \
|
||||
!(comment~[ /system/clock/get date ]) ] do={
|
||||
!(comment~[ /system/clock/get date ]) mac-address ] do={
|
||||
:local ClientVal [ /caps-man/access-list/get $Client ];
|
||||
:if ([ :len [ /ip/dhcp-server/lease/find where !dynamic comment~"^hotspot-to-wpa:" \
|
||||
mac-address=($ClientVal->"mac-address") ] ] = 0) do={
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
|
||||
:foreach Client in=[ /caps-man/access-list/find where comment~"^hotspot-to-wpa:" \
|
||||
:foreach Client in=[ /interface/wifi/access-list/find where comment~"^hotspot-to-wpa:" \
|
||||
!(comment~[ /system/clock/get date ]) ] do={
|
||||
!(comment~[ /system/clock/get date ]) mac-address ] do={
|
||||
:local ClientVal [ /caps-man/access-list/get $Client ];
|
||||
:local ClientVal [ /interface/wifi/access-list/get $Client ];
|
||||
:if ([ :len [ /ip/dhcp-server/lease/find where !dynamic comment~"^hotspot-to-wpa:" \
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
}
|
||||
|
||||
:foreach Client in=[ /interface/wifi/access-list/find where comment~"^hotspot-to-wpa:" \
|
||||
!(comment~[ /system/clock/get date ]) ] do={
|
||||
!(comment~[ /system/clock/get date ]) mac-address ] do={
|
||||
:local ClientVal [ /interface/wifi/access-list/get $Client ];
|
||||
:if ([ :len [ /ip/dhcp-server/lease/find where !dynamic comment~"^hotspot-to-wpa:" \
|
||||
mac-address=($ClientVal->"mac-address") ] ] = 0) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue