mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-10 19:31:35 +00:00
Compare commits
No commits in common. "cc56680206ac46c9b0a0838b5e83631c78461b9f" and "2b8dfec2f735fa5597f1a6dbb886f29b4ef8080b" have entirely different histories.
cc56680206
...
2b8dfec2f7
2 changed files with 4 additions and 9 deletions
|
|
@ -62,11 +62,7 @@
|
||||||
:set LogForwardInclude [ $EitherOr $LogForwardInclude [] ];
|
:set LogForwardInclude [ $EitherOr $LogForwardInclude [] ];
|
||||||
:set LogForwardIncludeMessage [ $EitherOr $LogForwardIncludeMessage [] ];
|
:set LogForwardIncludeMessage [ $EitherOr $LogForwardIncludeMessage [] ];
|
||||||
|
|
||||||
:local LogAll [ /log/find ];
|
|
||||||
:local MaxId ($LogAll->([ :len $LogAll ] - 1));
|
|
||||||
:local MaxNum [ $HexToNum $MaxId ];
|
|
||||||
:local LogForwardFilterLogForwardingCached [ $EitherOr [ $LogForwardFilterLogForwarding ] ("\$^") ];
|
:local LogForwardFilterLogForwardingCached [ $EitherOr [ $LogForwardFilterLogForwarding ] ("\$^") ];
|
||||||
|
|
||||||
:foreach Message in=[ /log/find where (!(message="") and \
|
:foreach Message in=[ /log/find where (!(message="") and \
|
||||||
!(message~$LogForwardFilterLogForwardingCached) and \
|
!(message~$LogForwardFilterLogForwardingCached) and \
|
||||||
!(topics~$LogForwardFilter) and !(message~$LogForwardFilterMessage)) or \
|
!(topics~$LogForwardFilter) and !(message~$LogForwardFilterMessage)) or \
|
||||||
|
|
@ -74,8 +70,7 @@
|
||||||
:set MessageVal [ /log/get $Message ];
|
:set MessageVal [ /log/get $Message ];
|
||||||
:local Bullet "information";
|
:local Bullet "information";
|
||||||
|
|
||||||
:local Current [ $HexToNum ($MessageVal->".id") ];
|
:if ($Last < [ $HexToNum ($MessageVal->".id") ]) do={
|
||||||
:if ($Last < $Current && $Current <= $MaxNum) do={
|
|
||||||
:local DupCount ($MessageDups->($MessageVal->"message"));
|
:local DupCount ($MessageDups->($MessageVal->"message"));
|
||||||
:if ($MessageVal->"topics" ~ "(warning)") do={
|
:if ($MessageVal->"topics" ~ "(warning)") do={
|
||||||
:set Warning true;
|
:set Warning true;
|
||||||
|
|
@ -111,7 +106,8 @@
|
||||||
:set LogForwardRateLimit [ $MAX 0 ($LogForwardRateLimit - 1) ];
|
:set LogForwardRateLimit [ $MAX 0 ($LogForwardRateLimit - 1) ];
|
||||||
}
|
}
|
||||||
|
|
||||||
:set LogForwardLast $MaxId;
|
:local LogAll [ /log/find ];
|
||||||
|
:set LogForwardLast ($LogAll->([ :len $LogAll ] - 1) );
|
||||||
} do={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -104,8 +104,7 @@
|
||||||
|
|
||||||
:foreach DohServer in=$DohServers do={
|
:foreach DohServer in=$DohServers do={
|
||||||
:if ([ :len ($DohServer->"doh-cert") ] > 0) do={
|
:if ([ :len ($DohServer->"doh-cert") ] > 0) do={
|
||||||
:if ([ $CertificateAvailable ($DohServer->"doh-cert") "fetch" ] = false || \
|
:if ([ $CertificateAvailable ($DohServer->"doh-cert") "dns" ] = false) do={
|
||||||
[ $CertificateAvailable ($DohServer->"doh-cert") "dns" ] = false) do={
|
|
||||||
$LogPrint warning $ScriptName ("Downloading certificate failed, trying without.");
|
$LogPrint warning $ScriptName ("Downloading certificate failed, trying without.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue