Skip to content

Commit eeb6785

Browse files
authored
Release v1.2.2 (#12)
- Zone specific settings are optional, so check if zone exists before accessing properties inside it, #11
1 parent 6846768 commit eeb6785

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.release

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
44

55
### Unreleased
66

7-
- fix: don't crash when zone settings is missing
7+
### [1.2.2] - 2025-01-02
8+
9+
- fix: zone specific settings are optional, so check if it exists before accessing properties inside it, #11
810

911
### [1.2.1] - 2024-08-22
1012

@@ -43,3 +45,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
4345
[1.1.0]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.1.0
4446
[1.2.0]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.0
4547
[1.2.1]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.1
48+
[1.2.2]: https://github.com/haraka/haraka-plugin-dns-list/releases/tag/v1.2.2

CONTRIBUTORS.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
This handcrafted artisinal software is brought to you by:
44

5-
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=msimerson">8</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/15035337?v=4"><br><a href="https://github.com/gtech99">gtech99</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=gtech99">1</a>)| <img height="80" src="https://avatars.githubusercontent.com/u/203240?v=4"><br><a href="https://github.com/lnedry">lnedry</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=lnedry">1</a>)|
6-
| :---: | :---: | :---: |
5+
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=msimerson">9</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/82041?v=4"><br><a href="https://github.com/gramakri">gramakri</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=gramakri">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/15035337?v=4"><br><a href="https://github.com/gtech99">gtech99</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=gtech99">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/203240?v=4"><br><a href="https://github.com/lnedry">lnedry</a> (<a href="https://github.com/haraka/haraka-plugin-dns-list/commits?author=lnedry">1</a>) |
6+
| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
77

8-
<sub>this file is maintained by [.release](https://github.com/msimerson/.release)</sub>
8+
<sub>this file is generated by [.release](https://github.com/msimerson/.release).
9+
Contribute to this project to get your GitHub profile included here.</sub>

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[![CI Test Status][ci-img]][ci-url]
22
[![Code Climate][clim-img]][clim-url]
33

4-
[![NPM][npm-img]][npm-url]
5-
64
# haraka-plugin-dns-list
75

86
## dns lists
@@ -115,5 +113,3 @@ if DNSBL returns OK on the mail hook, it prevents any subsequent mail hooks in o
115113
[ci-url]: https://github.com/haraka/haraka-plugin-dns-list/actions/workflows/ci.yml
116114
[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-dns-list/badges/gpa.svg
117115
[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-dns-list
118-
[npm-img]: https://nodei.co/npm/haraka-plugin-dns-list.png
119-
[npm-url]: https://www.npmjs.com/package/haraka-plugin-dns-list

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ exports.check_backscatterer = async function (next, connection, params) {
189189
}
190190

191191
function ipQuery(ip, zone) {
192-
// 1.2.3.4 -> 4.3.2.1.$zone.
192+
// ::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.
193193
if (net.isIPv6(ip)) return [net_utils.ipv6_reverse(ip), zone, ''].join('.')
194194

195-
// ::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.
195+
// 1.2.3.4 -> 4.3.2.1.$zone.
196196
if (net.isIPv4(ip))
197197
return [ip.split('.').reverse().join('.'), zone, ''].join('.')
198198

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "haraka-plugin-dns-list",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Haraka plugin for DNS lists (DNSBL, DNSWL)",
55
"main": "index.js",
66
"files": [

0 commit comments

Comments
 (0)