Skip to content

Commit

Permalink
fix: dkim_verify fails to find record (#3148) (#3149)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Simerson <[email protected]>
  • Loading branch information
hperrin and msimerson authored Jan 19, 2023
1 parent 02b74f9 commit 3d9312f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dkim.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ class DKIMObject {
}
}
if (!res) return this.result('no key for signature', 'invalid');
for (const record of res) {
for (const recordSegments of res) {
const record = recordSegments.join('');
if (!record.includes('p=')) {
this.debug(`${this.identity}: ignoring TXT record: ${record}`);
continue;
Expand Down

0 comments on commit 3d9312f

Please sign in to comment.