diff --git a/hotspot-to-wpa-lease.capsman.rsc b/hotspot-to-wpa-lease.capsman.rsc index ec7d0f72..3cda354e 100644 --- a/hotspot-to-wpa-lease.capsman.rsc +++ b/hotspot-to-wpa-lease.capsman.rsc @@ -37,6 +37,10 @@ :local LeaseVal [ $ParseKeyValueStore [ /ip/dhcp-server/lease/get $Lease comment ] ]; /ip/dhcp-server/lease/remove $Lease; + :if (($LeaseVal->"hotspot-to-wpa") != true) do={ + :continue; + } + :local Date [ /system/clock/get date ]; :local UserVal ({}); :if ([ :len [ /ip/hotspot/user/find where name=($LeaseVal->"username") ] ] > 0) do={ diff --git a/hotspot-to-wpa-lease.template.rsc b/hotspot-to-wpa-lease.template.rsc index bca64dab..98c086b4 100644 --- a/hotspot-to-wpa-lease.template.rsc +++ b/hotspot-to-wpa-lease.template.rsc @@ -41,6 +41,10 @@ :local LeaseVal [ $ParseKeyValueStore [ /ip/dhcp-server/lease/get $Lease comment ] ]; /ip/dhcp-server/lease/remove $Lease; + :if (($LeaseVal->"hotspot-to-wpa") != true) do={ + :continue; + } + :local Date [ /system/clock/get date ]; :local UserVal ({}); :if ([ :len [ /ip/hotspot/user/find where name=($LeaseVal->"username") ] ] > 0) do={ diff --git a/hotspot-to-wpa-lease.wifi.rsc b/hotspot-to-wpa-lease.wifi.rsc index dbcd3c3c..20bc8629 100644 --- a/hotspot-to-wpa-lease.wifi.rsc +++ b/hotspot-to-wpa-lease.wifi.rsc @@ -37,6 +37,10 @@ :local LeaseVal [ $ParseKeyValueStore [ /ip/dhcp-server/lease/get $Lease comment ] ]; /ip/dhcp-server/lease/remove $Lease; + :if (($LeaseVal->"hotspot-to-wpa") != true) do={ + :continue; + } + :local Date [ /system/clock/get date ]; :local UserVal ({}); :if ([ :len [ /ip/hotspot/user/find where name=($LeaseVal->"username") ] ] > 0) do={