Skip to content

Commit

Permalink
Fix hook registration for any access.domains (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
dalibor authored Nov 7, 2024
1 parent a4efa32 commit b3d780a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ exports.register = function () {

if (this.cfg.check.any) {
this.load_domain_file('domain', 'any')
for (const hook in ['connect', 'helo', 'ehlo', 'mail', 'rcpt']) {
for (const hook of ['connect', 'helo', 'ehlo', 'mail', 'rcpt']) {
this.register_hook(hook, 'any')
}
this.register_hook('data_post', 'data_any')
Expand Down

0 comments on commit b3d780a

Please sign in to comment.