I believe I've found a bug in one of the recent versions of ROS as one of my scripts stopped working properly. After some investigation I've found out that addresses in address lists are stored as srings. This variable type used to be ip for ips [127.0.0.1] and str for subnets [127.0.0.1/24].
> :put [:typeof [/ip address get number=0 value-name=address]]
ip
> :put [:typeof [/ip firewall address-list get number=0 value-name=address]]
str
It is possible to use :toip as a workaround:
> :put [:typeof [:toip [/ip firewall address-list get number=0 value-name=address]]]
ip
This workaround returns ip for ips [127.0.0.1] but nil for subnets [127.0.0.1/24].
I'd like to know if the change is a bug or is it intentional.