Browse Source

[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.
tags/3.3
Timo Rothenpieler 1 year ago
parent
commit
72d2415486
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/fuzzy_storage.c

+ 3
- 0
src/fuzzy_storage.c View File

@@ -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;

Loading…
Cancel
Save