Skip to content

Commit

Permalink
rate_limit: Set initialized flag of SieveLru when loading yaml is done (
Browse files Browse the repository at this point in the history
#11181)

(cherry picked from commit 996291d)
  • Loading branch information
masaori335 authored and Chris McFarlen committed Apr 2, 2024
1 parent a16b000 commit 9eefcd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/experimental/rate_limit/ip_reputation.cc
Expand Up @@ -135,6 +135,8 @@ SieveLru::parseYaml(const YAML::Node &node)
Dbg(dbg_ctl, "\twith perma-block rule: %s(%u, %u, %ld)", _name.c_str(), _permablock_limit, _permablock_threshold,
static_cast<long>(_permablock_max_age.count()));

_initialized = true;

return true;
}

Expand Down

0 comments on commit 9eefcd8

Please sign in to comment.