Fix missing PUBLIC_IPV6 in test for whether custom AAAA record blocks SSL certificate generation (#2491)

On new installation, if you create AAAA record for mydomain.tld then mydomain.tld isn't available for SSL certificate or website.

It erroneously reports that it's hosted elsewhere.
This commit is contained in:
Lyle Keeton
2025-05-14 11:58:17 -04:00
committed by GitHub
parent 3efd4257b5
commit 05c2f3c9a2
+1 -1
View File
@@ -52,7 +52,7 @@ def get_domains_with_a_records(env):
domains = set()
dns = get_custom_dns_config(env)
for domain, rtype, value in dns:
if rtype == "CNAME" or (rtype in {"A", "AAAA"} and value not in {"local", env['PUBLIC_IP']}):
if rtype == "CNAME" or (rtype in {"A", "AAAA"} and value not in {"local", env['PUBLIC_IP'], env['PUBLIC_IPV6']}):
domains.add(domain)
return domains