Skip to content
Browse files

mf.is_resolvable: convert bogus re to string

  • Loading branch information...
1 parent 26dac04 commit 8e9ec023e1d630e75194c07192c0a8da028ad839 @msimerson msimerson committed Dec 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/mail_from.is_resolvable.js
View
2 plugins/mail_from.is_resolvable.js
@@ -13,7 +13,7 @@ exports.hook_mail = function(next, connection, params) {
var plugin = this;
var domain = mail_from.host;
var config = this.config.get('mail_from.is_resolvable.ini');
- var re_bogus_ip = new RegExp(config.main.re_bogus_ip || /^(?:0\.0\.0\.0|255\.255\.255\.255|127\.)/ );
+ var re_bogus_ip = new RegExp(config.main.re_bogus_ip || '^(?:0\.0\.0\.0|255\.255\.255\.255|127\.)' );
// Just in case DNS never comes back (UDP), we should DENYSOFT.
var timeout_id = setTimeout(function () {

0 comments on commit 8e9ec02

Please sign in to comment.
Something went wrong with that request. Please try again.