hellou,
i have very simple script:
return true/false if IP adress from registration-table is in range from array Ranges
:local Ranges [:toarray "192.168.1.0/24,192.168.2.0/24"]; \
:foreach i in=[/interface wireless registration-table find] do={ \
:local lastIP [/interface wireless registration-table get $i last-ip]; \
:foreach j in=$Ranges do={ \
:log info ( $lastIP ." je z rozsahu ". $j ." ?"); \
:log info ( $lastIP in $j); \
}; \
};
Bad return is only false
I tryed
- lastIp with “/32”
- convert lastIp :toip
and false false false… any ideas?
PS:sorry form my english