This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Function to update an address list from multiple URLs | |
:local updateAddressList do={ | |
:do { | |
# Clear existing entries if not updated | |
/ip firewall address-list set [find list=$listName dynamic=no] timeout=$timeout dynamic=yes | |
/ipv6 firewall address-list set [find list=$listName dynamic=no] timeout=$timeout dynamic=yes | |
# Loop through each URL | |
:foreach url in=$urls do={ | |
# Fetch data from the current URL |