Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

return after next() in the whitelist checks

  • Loading branch information...
commit feb24ab9ec682462f6a617138ab726c37a317531 1 parent 6a46e10
@godsflaw godsflaw authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/lookup_rdns.strict.js
View
4 plugins/lookup_rdns.strict.js
@@ -73,7 +73,7 @@ exports.hook_lookup_rdns = function (next, connection) {
if (_in_whitelist(connection, plugin, connection.remote_ip)) {
called_next++;
- next(OK, connection.remote_ip);
+ return next(OK, connection.remote_ip);
}
timeout_id = setTimeout(function () {
@@ -108,7 +108,7 @@ exports.hook_lookup_rdns = function (next, connection) {
if (_in_whitelist(connection, plugin, domains[i])) {
called_next++;
clearTimeout(timeout_id);
- next(OK, domains[i]);
+ return next(OK, domains[i]);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.