ports/net/py-dnspython/patches/patch-dns_resolver_py

15 lines
638 B
Text
Raw Normal View History

2023-09-20 18:59:05 +00:00
openbsd doesn't support v4mapped
2023-08-16 22:26:55 +00:00
Index: dns/resolver.py
--- dns/resolver.py.orig
+++ dns/resolver.py
2023-09-20 18:59:05 +00:00
@@ -1841,7 +1841,7 @@ def _getaddrinfo(
# reasons. We will also do this short circuit below if we
2023-08-16 22:26:55 +00:00
# discover that the host is an address literal.
2023-09-20 18:59:05 +00:00
return _original_getaddrinfo(host, service, family, socktype, proto, flags)
2023-08-16 22:26:55 +00:00
- if flags & (socket.AI_ADDRCONFIG | socket.AI_V4MAPPED) != 0:
+ if flags & (socket.AI_ADDRCONFIG) != 0:
# Not implemented. We raise a gaierror as opposed to a
# NotImplementedError as it helps callers handle errors more
# appropriately. [Issue #316]