Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

karma: only *lower* tarpit for friendly connects

  • Loading branch information...
commit 195c96ad2b4602e4c7176335f6f0221936b32096 1 parent ed90eb4
@msimerson msimerson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugins/karma.js
View
2  plugins/karma.js
@@ -82,7 +82,7 @@ exports.apply_tarpit = function (connection, hook, score, next) {
// be less punitive to roaming users
if (([587,465].indexOf(connection.local_port) !== -1) && /^(ehlo|connect|quit)$/.test(hook)) {
- max = 2;
+ if (max > 2) { max = 2; }
// Reduce penalty for good history
if (k.history > 0) {
delay = parseFloat(delay - 2);
Please sign in to comment.
Something went wrong with that request. Please try again.