diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-26 12:14:17 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-26 12:26:52 +0000 |
commit | f84b86d901c8ba53147ae89bce894f58e0448be3 (patch) | |
tree | 05a9ac919951becad5253bfe45d439a622379d86 /src/fuzzy_storage.c | |
parent | 06c92488d21d4eefa8f58a498a1ea174856ccd4f (diff) | |
download | rspamd-f84b86d901c8ba53147ae89bce894f58e0448be3.tar.gz rspamd-f84b86d901c8ba53147ae89bce894f58e0448be3.zip |
[Rework] Track maps origins
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index b1a340d6b..6d046fcdb 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -2503,7 +2503,7 @@ start_fuzzy (struct rspamd_worker *worker) if (ctx->update_map != NULL) { rspamd_config_radix_from_ucl (worker->srv->cfg, ctx->update_map, "Allow fuzzy updates from specified addresses", - &ctx->update_ips, NULL, worker); + &ctx->update_ips, NULL, worker, "fuzzy update"); } if (ctx->skip_map != NULL) { @@ -2529,7 +2529,7 @@ start_fuzzy (struct rspamd_worker *worker) "Block fuzzy requests from the specific IPs", &ctx->blocked_ips, NULL, - worker); + worker, "fuzzy blocked"); } /* Create radix trees */ @@ -2538,13 +2538,14 @@ start_fuzzy (struct rspamd_worker *worker) "Skip ratelimits from specific ip addresses/networks", &ctx->ratelimit_whitelist, NULL, - worker); + worker, "fuzzy ratelimit whitelist"); } if (!isnan (ctx->delay) && ctx->delay_whitelist_map != NULL) { rspamd_config_radix_from_ucl (worker->srv->cfg, ctx->delay_whitelist_map, "Skip delay from the following ips", - &ctx->delay_whitelist, NULL, worker); + &ctx->delay_whitelist, NULL, worker, + "fuzzy delayed whitelist"); } /* Ratelimits */ |