From e3b2902cb1bb656d8d722400a2ab9eac359b65ba 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 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f78ae8..6518805 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-08-14 + +- 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) }