Skip to content

Commit

Permalink
Cache the reverse DNS map
Browse files Browse the repository at this point in the history
  • Loading branch information
seanthegeek committed Sep 2, 2024
1 parent 1c3bcc0 commit ef621d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parsedmarc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from parsedmarc.utils import parse_email
from parsedmarc.utils import timestamp_to_human, human_timestamp_to_datetime

__version__ = "8.13.0"
__version__ = "8.14.0"

logger.debug("parsedmarc v{0}".format(__version__))

Expand Down Expand Up @@ -107,6 +107,7 @@ def _parse_report_record(record, ip_db_path=None,
always_use_local_files=always_use_local_files,
reverse_dns_map_path=reverse_dns_map_path,
reverse_dns_map_url=reverse_dns_map_url,
reverse_dns_map=REVERSE_DNS_MAP,
offline=offline,
nameservers=nameservers,
timeout=dns_timeout)
Expand Down Expand Up @@ -909,6 +910,7 @@ def parse_forensic_report(feedback_report,
always_use_local_files=always_use_local_files,
reverse_dns_map_path=reverse_dns_map_path,
reverse_dns_map_url=reverse_dns_map_url,
reverse_dns_map=REVERSE_DNS_MAP,
offline=offline,
nameservers=nameservers,
timeout=dns_timeout)
Expand Down

0 comments on commit ef621d6

Please sign in to comment.