From: Timo Rothenpieler Date: Sun, 25 Sep 2022 22:33:43 +0000 (+0200) Subject: [Fix] Only check allowed fuzzy worker update ips for non-unix sockets X-Git-Tag: 3.3~3^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=72d2415486f00a610e41f10110ff2521b1d6bcbd;p=rspamd.git [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. --- 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;