Skip to content

Commit

Permalink
Update spf_discovery.py
Browse files Browse the repository at this point in the history
  • Loading branch information
underdarknl authored Jan 10, 2025
1 parent 0d1b3ea commit cf9fead
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions octopoes/bits/spf_discovery/spf_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,12 @@ def parse_ptr_exists_include_mechanism(
yield DNSSPFMechanismHostname(
spf_record=spf_record.reference, hostname=input_ooi.hostname, mechanism="ptr", qualifier=mechanism_qualifier
)
ft = KATFindingType(id="KAT-EXPENSIVE-SPF")
ft = KATFindingType(id="KAT-DEPRECATED-SPF-MECHANISM")
yield ft
yield Finding(
finding_type=ft.reference,
ooi=input_ooi.reference,
description="""This SPF record contains a PTR mechanism.,
If at all possible, you should avoid using this mechanism in your SPF record,
because it will result in a larger number of expensive DNS lookups.""",
description="""This SPF record contains a PTR mechanism, Use of PTR is deprecated.""",
)
else:
mechanism_type, domain = mechanism.split(":", 1)
Expand Down

0 comments on commit cf9fead

Please sign in to comment.