I'm trying to get some DDNS updater scripts working, and have come across a common issue. Where there is code such as this:
This doesn't work for me, as my interface has two IP addresses (one for the WAN, another for the cable modem management interface), so find interface is getting an array.
Code: Select all
:local currentIP [/ip address get [find interface="$inetinterface" disabled=no] address]
Is there a common way of getting whichever of these addresses is the public routable IP instead of the internal one?