ports/mail/py-pyspf/files/patch-spf.py
Doug White 4fbf489f56
mail/py-pyspf: Add lifetime argument back
- Fix 2920ddff74
- Bump PORTREVISION for package change

PR:		282388
2024-11-21 21:39:54 +08:00

11 lines
515 B
Python

--- spf.py.orig 2020-01-01 21:02:26 UTC
+++ spf.py
@@ -128,7 +128,7 @@ def DNSLookup_dnspython(name, qtype, tcpfallback=True,
retVal = []
try:
# FIXME: how to disable TCP fallback in dnspython if not tcpfallback?
- answers = dns.resolver.query(name, qtype, lifetime=timeout)
+ answers = dns.resolver.resolve(name, qtype, lifetime=timeout)
for rdata in answers:
if qtype == 'A' or qtype == 'AAAA':
retVal.append(((name, qtype), rdata.address))