My question is simple: I have a text area that is filled with IP/CIDR's and I want to know how I can retrieve an IP from there and then check the IP as used.
The text area (which is implemented in plugin's page configuration and I can edit the configuration page through API, I can get the value from the text area using $pluginData -> ipAddresses) I have, is filled with IP/CIDR that are separated by comma, such as: "126.96.36.199/24, 188.8.131.52/24, 184.108.40.206/24,220.127.116.11/24,18.104.22.168/24,22.214.171.124/24".
My question is: how can I retrieve all the IPs that are in that text area and show them on my admin page, aswell as setting them as a attribute to a service for my client? If it used to check it as "used" and cannot longer be used until it is unchecked.
Since I try to find a solution for my problem I just tried to use "cidrToRange" function but the only thing that I get is "Array".