netwatch-notify: increase the address-list timeout even further

This commit is contained in:
Christian Hesse 2025-07-21 10:52:22 +02:00
parent 4c2c7e817a
commit 721e786f68

View file

@ -62,14 +62,14 @@
:local FwAddrList ($ScriptName . "-" . [ $GetRandom20CharAlNum ]); :local FwAddrList ($ScriptName . "-" . [ $GetRandom20CharAlNum ]);
:if ([ :typeof [ :toip $Expected ] ] = "ip") do={ :if ([ :typeof [ :toip $Expected ] ] = "ip") do={
/ip/firewall/address-list/add address=$Name list=$FwAddrList dynamic=yes timeout=10s; /ip/firewall/address-list/add address=$Name list=$FwAddrList dynamic=yes timeout=30s;
:delay 20ms; :delay 20ms;
:if ([ :len [ /ip/firewall/address-list/find where list=$FwAddrList address=$Expected ] ] > 0) do={ :if ([ :len [ /ip/firewall/address-list/find where list=$FwAddrList address=$Expected ] ] > 0) do={
:return true; :return true;
} }
} }
:if ([ :typeof [ :toip6 $Expected ] ] = "ip6") do={ :if ([ :typeof [ :toip6 $Expected ] ] = "ip6") do={
/ipv6/firewall/address-list/add address=$Name list=$FwAddrList dynamic=yes timeout=10s; /ipv6/firewall/address-list/add address=$Name list=$FwAddrList dynamic=yes timeout=30s;
:delay 20ms; :delay 20ms;
:if ([ :len [ /ipv6/firewall/address-list/find where list=$FwAddrList address=$Expected ] ] > 0) do={ :if ([ :len [ /ipv6/firewall/address-list/find where list=$FwAddrList address=$Expected ] ] > 0) do={
:return true; :return true;