From 723b0ec5b2eac2912e9b786b0b05c587398c51fc Mon Sep 17 00:00:00 2001 From: DoobleD Date: Mon, 7 Oct 2024 14:31:11 +0200 Subject: [PATCH] fix(mech_MX): fix crit error on logging undef addrs --- CHANGELOG.md | 4 ++++ lib/spf.js | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f78ae8..5e36c6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ### Unreleased +### [1.2.8] - 2024-10-07 + +- fix: mech_MX fix crit error on logging undef addrs + ### [1.2.7] - 2024-08-14 - test: in index.js, unref timers, so test suite exits diff --git a/lib/spf.js b/lib/spf.js index f466571..fc59205 100644 --- a/lib/spf.js +++ b/lib/spf.js @@ -520,7 +520,7 @@ class SPF { } } - this.log_debug(`mech_mx: mx=${mx} addresses=${addrs.join(',')}`) + this.log_debug(`mech_mx: mx=${mx} addresses=${addrs?.join(',')}`) addresses = addrs.concat(addresses) } diff --git a/package.json b/package.json index fac504a..07639ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "haraka-plugin-spf", - "version": "1.2.7", + "version": "1.2.8", "description": "Sender Policy Framework (SPF) plugin for Haraka", "main": "index.js", "files": [