domainaware / checkdmarc

A parser for SPF and DMARC DNS records
https://domainaware.github.io/checkdmarc
Apache License 2.0
251 stars 77 forks source link

Fix missing SPFSyntaxError when ip address and version are not matching #87

Closed stcz closed 1 year ago

stcz commented 1 year ago

Currently, the parse_spf_record function doesn't detect when a IPv4 Address is written in the ip6 mechanism and the other way round. This MR will fix this behavior.