Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid exception on undefined mx #17

Closed
wants to merge 1 commit into from
Closed

fix: avoid exception on undefined mx #17

wants to merge 1 commit into from

Conversation

DoobleD
Copy link
Contributor

@DoobleD DoobleD commented Sep 7, 2023

Fixes the CRIT error below when the mx can't be resolved:

[CRIT] [-] [core] TypeError: Cannot read properties of undefined (reading 'join')
[CRIT] [-] [core]     at SPF.mech_mx (/mypath/Haraka/node_modules/haraka-plugin-spf/lib/spf.js:504:59)
[CRIT] [-] [core]     at async SPF.check_host (/mypath/Haraka/node_modules/haraka-plugin-spf/lib/spf.js:290:22)

Observed with node 16, haraka 3.0.2.

Checklist:

  • docs updated
  • tests updated
  • Changes.md updated

@DoobleD
Copy link
Contributor Author

DoobleD commented Sep 7, 2023

I'm sorry I just realized this has been fixed already. Closing.

@DoobleD DoobleD closed this Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant