diff options
author | Christian Hesse <mail@eworm.de> | 2024-02-24 23:21:42 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-02-29 14:21:58 +0100 |
commit | 1687e2780fb8a10c84b8ca829a536b4030703418 (patch) | |
tree | b8b77732bf9fa032a9d0c990ec72b596cdce4fd5 | |
parent | b9e0ffac1d5bed0d8243e9ee1467336517f8957a (diff) |
fw-addr-lists: get timeout from loop
-rw-r--r-- | fw-addr-lists.rsc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fw-addr-lists.rsc b/fw-addr-lists.rsc index bc294d1..7845b8a 100644 --- a/fw-addr-lists.rsc +++ b/fw-addr-lists.rsc @@ -107,10 +107,10 @@ $WaitFullyConnected; } } - :foreach Address,Ignore in=$Addresses do={ - $LogPrintExit2 debug $0 ("Adding for " . ($Addresses->$Address) . ": " . $Address) false; + :foreach Address,Timeout in=$Addresses do={ + $LogPrintExit2 debug $0 ("Adding for " . $Timeout . ": " . $Address) false; :do { - /ip/firewall/address-list/add list=$FwListName comment=$ListComment address=$Address timeout=($Addresses->$Address); + /ip/firewall/address-list/add list=$FwListName comment=$ListComment address=$Address timeout=$Timeout; :set ($Addresses->$Address); :set CntAdd ($CntAdd + 1); } on-error={ |