1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

web_domains should also normalize ipv6 addresses (#1201)

This commit is contained in:
Michael Kroes 2017-07-13 13:16:12 +02:00 committed by Joshua Tauberer
parent 2bd6cc4d6b
commit 2c324d0bc9

View File

@ -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