diff --git a/.release b/.release
index afb1db8..80c3d1a 160000
--- a/.release
+++ b/.release
@@ -1 +1 @@
-Subproject commit afb1db801607dda5e859f39b600f0dd0111e4651
+Subproject commit 80c3d1a67344cc321e054a23a8b4ae59b284909a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b5304bd..c23507d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
### Unreleased
-- fix: don't crash when zone settings is missing
+### [1.2.2] - 2025-01-02
+
+- fix: zone specific settings are optional, so check if it exists before accessing properties inside it, #11
### [1.2.1] - 2024-08-22
@@ -43,3 +45,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
[1.1.0]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.1.0
[1.2.0]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.0
[1.2.1]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.1
+[1.2.2]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.2
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 5926c3e..45d6f59 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -2,7 +2,8 @@
This handcrafted artisinal software is brought to you by:
-|
msimerson (8)|
gtech99 (1)|
lnedry (1)|
-| :---: | :---: | :---: |
+|
msimerson (9) |
gramakri (1) |
gtech99 (1) |
lnedry (1) |
+| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
-this file is maintained by [.release](https://github.com/msimerson/.release)
+this file is generated by [.release](https://github.com/msimerson/.release).
+Contribute to this project to get your GitHub profile included here.
diff --git a/README.md b/README.md
index b5b03bb..4c8f9bc 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,6 @@
[![CI Test Status][ci-img]][ci-url]
[![Code Climate][clim-img]][clim-url]
-[![NPM][npm-img]][npm-url]
-
# haraka-plugin-dns-list
## dns lists
@@ -115,5 +113,3 @@ if DNSBL returns OK on the mail hook, it prevents any subsequent mail hooks in o
[ci-url]: https://github.com/haraka/haraka-plugin-dns-list/actions/workflows/ci.yml
[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-dns-list/badges/gpa.svg
[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-dns-list
-[npm-img]: https://nodei.co/npm/haraka-plugin-dns-list.png
-[npm-url]: https://www.npmjs.com/package/haraka-plugin-dns-list
diff --git a/index.js b/index.js
index 2e18016..c29f3c4 100644
--- a/index.js
+++ b/index.js
@@ -189,10 +189,10 @@ exports.check_backscatterer = async function (next, connection, params) {
}
function ipQuery(ip, zone) {
- // 1.2.3.4 -> 4.3.2.1.$zone.
+ // ::FFFF:7F00:2 -> 2.0.0.0.0.0.f.7.f.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.$zone.
if (net.isIPv6(ip)) return [net_utils.ipv6_reverse(ip), zone, ''].join('.')
- // ::FFFF:7F00:2 -> 2.0.0.0.0.0.f.7.f.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.$zone.
+ // 1.2.3.4 -> 4.3.2.1.$zone.
if (net.isIPv4(ip))
return [ip.split('.').reverse().join('.'), zone, ''].join('.')
diff --git a/package.json b/package.json
index f8635a2..fd60605 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "haraka-plugin-dns-list",
- "version": "1.2.1",
+ "version": "1.2.2",
"description": "Haraka plugin for DNS lists (DNSBL, DNSWL)",
"main": "index.js",
"files": [