From 8d63505ba4b4d3cc89f6bb2e951d8ae2ff265943 Mon Sep 17 00:00:00 2001 From: "A. Schippers" Date: Fri, 28 Feb 2020 20:24:02 +0100 Subject: [PATCH] change to env.get('PUBLIC_IPV6') --- management/dns_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/dns_update.py b/management/dns_update.py index c1940cbe..d3ec1464 100755 --- a/management/dns_update.py +++ b/management/dns_update.py @@ -307,7 +307,7 @@ def build_zone(domain, all_domains, additional_records, www_redirect_domains, en # mta-sts.* - required A record for mta-sts (serving the policy) mta_sts_records = [ ("mta-sts", "A", env["PUBLIC_IP"], "Provides MTA-STS support"), - ("mta-sts", "AAAA", env["PUBLIC_IPV6"], "Provides MTA-STS support"), + ("mta-sts", "AAAA", env.get('PUBLIC_IPV6'), "Provides MTA-STS support"), ("_mta-sts", "TXT", "v=STSv1; id="+datetime.datetime.now().strftime("%Y%m%d%H%M%S")+"Z", "Enables MTA-STS support") ]