haraka-plugin-limit
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -483,3 +483,2 @@ const constants = require('haraka-constants') | ||
} catch (err) { | ||
console.error(err) | ||
connection.results.add(this, { err }) | ||
@@ -515,3 +514,7 @@ } | ||
for (const ts of Object.keys(tstamps)) { | ||
if (parseInt(ts, 10) < periodStartTs) continue // older than ttl | ||
if (parseInt(ts, 10) < periodStartTs) { | ||
// older than ttl | ||
this.db.hDel(`rate_conn:${key}`, ts) | ||
continue | ||
} | ||
connections_in_ttl_period = | ||
@@ -518,0 +521,0 @@ connections_in_ttl_period + parseInt(tstamps[ts], 10) |
{ | ||
"name": "haraka-plugin-limit", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "enforce various types of limits on remote MTAs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28976
507