mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-02 09:14:39 +02:00
netwatch-notify: increase timeout...
... as a timeout of one second expires immediately. 🤨
This commit is contained in:
parent
788400c458
commit
97b99316b2
1 changed files with 2 additions and 2 deletions
|
@ -61,12 +61,12 @@
|
|||
:global GetRandom20CharAlNum;
|
||||
|
||||
:local FwAddrList ($ScriptName . "-" . [ $GetRandom20CharAlNum ]);
|
||||
/ip/firewall/address-list/add address=$Name list=$FwAddrList dynamic=yes timeout=1s;
|
||||
/ip/firewall/address-list/add address=$Name list=$FwAddrList dynamic=yes timeout=2s;
|
||||
:delay 20ms;
|
||||
:if ([ :len [ /ip/firewall/address-list/find where list=$FwAddrList address=$Expected ] ] > 0) do={
|
||||
:return true;
|
||||
}
|
||||
/ipv6/firewall/address-list/add address=$Name list=$FwAddrList dynamic=yes timeout=1s;
|
||||
/ipv6/firewall/address-list/add address=$Name list=$FwAddrList dynamic=yes timeout=2s;
|
||||
:delay 20ms;
|
||||
:if ([ :len [ /ipv6/firewall/address-list/find where list=$FwAddrList address=$Expected ] ] > 0) do={
|
||||
:return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue