From 2c324d0bc934b9969953ff13ccfc58e4ca44ff2d Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Thu, 13 Jul 2017 13:16:12 +0200 Subject: [PATCH] web_domains should also normalize ipv6 addresses (#1201) --- management/status_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/status_checks.py b/management/status_checks.py index 42fc876a..3ee1c124 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -640,7 +640,7 @@ def check_web_domain(domain, rounded_time, ssl_certificates, env, output): for (rtype, expected) in (("A", env['PUBLIC_IP']), ("AAAA", env.get('PUBLIC_IPV6'))): if not expected: continue # IPv6 is not configured value = query_dns(domain, rtype) - if value == expected: + if normalize_ip(value) == normalize_ip(expected): ok_values.append(value) else: output.print_error("""This domain should resolve to your box's IP address (%s %s) if you would like the box to serve