Skip to content

Commit

Permalink
Update helo.checks.js
Browse files Browse the repository at this point in the history
Reduced DNS timeout to prevent Haraka from crashing.
  • Loading branch information
lnedry authored Dec 14, 2023
1 parent 82ec0cf commit 3c4e4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/helo.checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ exports.get_a_records = async function (host) {
err.code = dns.TIMEOUT;
this.logerror(err);
throw err;
}, (this.cfg.main.dns_timeout || 30) * 1000);
}, (this.cfg.main.dns_timeout || 28) * 1000);

// fully qualify, to ignore any search options in /etc/resolv.conf
if (!/\.$/.test(host)) host = `${host}.`;
Expand Down

0 comments on commit 3c4e4a8

Please sign in to comment.