summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2022-09-26 00:33:43 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2022-09-26 00:57:14 +0200
commit72d2415486f00a610e41f10110ff2521b1d6bcbd (patch)
tree0871055bcb91806860b20a276c8696ccc1ca1c00
parent60cd96905a9eab257074634a18aae8c711d62293 (diff)
downloadrspamd-72d2415486f00a610e41f10110ff2521b1d6bcbd.tar.gz
rspamd-72d2415486f00a610e41f10110ff2521b1d6bcbd.zip
[Fix] Only check allowed fuzzy worker update ips for non-unix sockets
The source will always be localhost, it makes no sense to check for allowed IPs.
-rw-r--r--src/fuzzy_storage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 385018565..8dc27e4b4 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -363,6 +363,9 @@ rspamd_fuzzy_check_write (struct fuzzy_session *session)
}
if (session->ctx->update_ips != NULL && session->addr) {
+ if (rspamd_inet_address_get_af (session->addr) == AF_UNIX) {
+ return TRUE;
+ }
if (rspamd_match_radix_map_addr (session->ctx->update_ips,
session->addr) == NULL) {
return FALSE;