From a0d170924450341fd1229a40e7095763c1440dfe Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 28 Sep 2020 20:26:29 +0200 Subject: log-forward: notify on rate limit --- global-config | 2 +- global-config-overlay | 2 +- global-config.changes | 1 + global-functions | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/global-config b/global-config index 446628f..c828a97 100644 --- a/global-config +++ b/global-config @@ -8,7 +8,7 @@ # Make sure all configuration properties are up to date and this # value is in sync with value in script 'global-functions'! -:global GlobalConfigVersion 29; +:global GlobalConfigVersion 30; # This is used for DNS and backup file. :global Domain "example.com"; diff --git a/global-config-overlay b/global-config-overlay index 93c55ae..f76fac3 100644 --- a/global-config-overlay +++ b/global-config-overlay @@ -9,7 +9,7 @@ # Make sure all configuration properties are up to date and this # value is in sync with value in script 'global-functions'! # Comment or remove to disable change notifications. -:global GlobalConfigVersion 29; +:global GlobalConfigVersion 30; # Copy configuration from global-config here and modify it. diff --git a/global-config.changes b/global-config.changes index 605ceac..8253c15 100644 --- a/global-config.changes +++ b/global-config.changes @@ -33,4 +33,5 @@ 27="Added queue for Telegram notifications to resend later on error."; 28="Made 'dhcp-to-dns' act on all bound leases, not just dynamic ones."; 29="Added filter on log message text for 'log-forward'."; + 30="Implemented simple rate limit for 'log-forward' to prevent flooding."; }; diff --git a/global-functions b/global-functions index e6eb93b..ad5651e 100644 --- a/global-functions +++ b/global-functions @@ -8,7 +8,7 @@ # https://git.eworm.de/cgit/routeros-scripts/about/ # expected configuration version -:global ExpectedConfigVersion 29; +:global ExpectedConfigVersion 30; # global variables not to be changed by user :global GlobalFunctionsReady false; -- cgit v1.2.3-70-g09d2