1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

if a CNAME is set for a domain, don't create a website for that domain (just like A/AAAA records)

This commit is contained in:
Joshua Tauberer
2015-02-17 00:44:30 +00:00
parent 3c50c9a18b
commit 449a538e6b
2 changed files with 2 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ def get_web_domains(env):
for domain, value in dns.items():
if domain not in domains: continue
if (isinstance(value, str) and (value != "local")) \
or (isinstance(value, dict) and ("CNAME" in value)) \
or (isinstance(value, dict) and ("A" in value) and (value["A"] != "local")) \
or (isinstance(value, dict) and ("AAAA" in value) and (value["AAAA"] != "local")):
domains.remove(domain)