Filter out broken cloudfront.net subdomains, to shrink PAC size

This commit is contained in:
ValdikSS 2024-04-23 01:18:06 +03:00
parent 2d798142e6
commit 9eb504cf0b

View File

@ -51,8 +51,11 @@ class AZResolver(dns.asyncresolver.Resolver):
dns.resolver.YXDOMAIN, dns.resolver.NoNameservers):
return domain
except dns.resolver.NoAnswer:
# Do not thread domain as broken if the answer is empty
pass
# Do not thread domain as broken if the answer is empty,
# but do if it's cloudfront subdomain
if domain.endswith('.cloudfront.net'):
return domain
def tasksProvider(domainiter, resolver):
for domain in domainiter: