@profullstack/threatcrush 0.13.45 → 0.13.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/daemon.js CHANGED
@@ -19164,8 +19164,10 @@ var RemediationManager = class {
19164
19164
  */
19165
19165
  async reconcile() {
19166
19166
  const now = Date.now();
19167
- const live2 = this.blocklist.filter((b) => b.expires_at > now);
19168
- const stale = this.blocklist.filter((b) => b.expires_at <= now);
19167
+ const lifted = this.blocklist.filter((b) => this.isAllowlisted(b.ip));
19168
+ for (const entry of lifted) this.logLine(`[firewall] reconcile: lifting ban on protected ${entry.ip}`);
19169
+ const live2 = this.blocklist.filter((b) => b.expires_at > now && !this.isAllowlisted(b.ip));
19170
+ const stale = this.blocklist.filter((b) => b.expires_at <= now || this.isAllowlisted(b.ip));
19169
19171
  for (const entry of stale) {
19170
19172
  if (!entry.dry_run) {
19171
19173
  try {