1
0
镜像自地址 https://github.com/mail-in-a-box/mailinabox.git 已同步 2026-03-14 17:27:23 +01:00
这个提交包含在:
David Duque
2020-05-28 16:17:10 +01:00
父节点 235ebe9a4a
当前提交 8ca58798e4

查看文件

@@ -918,7 +918,7 @@ def set_secondary_dns(hostnames, env):
raise ValueError("That's neither an IPv4 or IPv6 subnet.")
else:
v = ipaddress.ip_address(item[4:]) # raises a ValueError if there's a problem
if not isinstance(v, ipaddress.IPv4Network) and not isinstance(v, ipaddress.IPv6Network):
if not isinstance(v, ipaddress.IPv4Address) and not isinstance(v, ipaddress.IPv6Address):
raise ValueError("That's neither an IPv4 or IPv6 address.")
except ValueError:
raise ValueError("'%s' is not an IPv4 or IPv6 address or subnet." % item[4:])