1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-24 07:37:04 +00:00

correct use of Pyhton Booleans

This commit is contained in:
KiekerJan 2021-05-22 18:47:37 +02:00
parent eb990194c7
commit 6be8ae1e4b

View File

@ -150,12 +150,12 @@ def build_zone(domain, all_domains, additional_records, www_redirect_domains, en
secondary_ns_list = get_secondary_dns(additional_records, mode="NS")
# Need at least two nameservers in the secondary dns list
useHiddenMaster = false
useHiddenMaster = False
if os.path.exists("/etc/usehiddenmasterdns") and len(secondary_ns_list) > 1:
with open("/etc/usehiddenmasterdns") as f:
for line in f:
if line == domain or line == "usehiddenmasterdns":
useHiddenMaster = true
useHiddenMaster = True
break
if not useHiddenMaster: