mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-17 14:39:33 +00:00
Merge branch 'eworm-de:main' into main
This commit is contained in:
commit
c0f5022128
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
$LogPrint [ $IfThenElse ($HostInfo->"no-resolve-fail" != true) warning debug ] \
|
$LogPrint [ $IfThenElse ($HostInfo->"no-resolve-fail" != true) warning debug ] \
|
||||||
$ScriptName ("Resolving name '" . $HostInfo->"resolve" . [ $IfThenElse \
|
$ScriptName ("Resolving name '" . $HostInfo->"resolve" . [ $IfThenElse \
|
||||||
($HostInfo->"resolve" != $HostInfo->"name") ("' for " . $Type . " '" . \
|
($HostInfo->"resolve" != $HostInfo->"name") ("' for " . $Type . " '" . \
|
||||||
$HostInfo->"name") "" ] . "' failed: " . $Err);
|
$HostInfo->"name") "" ] . "' failed third time: " . $Err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue