if a custom DNS record exists for a web-serving domain and the record is just the box's IP address, don't skip this domain for serving web

This commit is contained in:
Joshua Tauberer
2015-09-05 20:07:51 +00:00
parent c545e46ebe
commit 104b804059
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,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 != "local"):
if rtype == "CNAME" or (rtype in ("A", "AAAA") and value not in ("local", env['PUBLIC_IP'])):
domains.add(domain)
return domains