diff options
author | Petr Viktorin <pviktori@redhat.com> | 2012-02-15 05:11:24 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-02-29 11:02:58 +0100 |
commit | 45e92a338fe23ee1daea324e30e03d32f147e8bf (patch) | |
tree | fd590388f74fe190c27e2b7abe23d1bd6cad7619 | |
parent | a6a83ec168a439949bc24c4fea7cdfdb6d276d0d (diff) | |
download | freeipa-45e92a338fe23ee1daea324e30e03d32f147e8bf.tar.gz freeipa-45e92a338fe23ee1daea324e30e03d32f147e8bf.tar.xz freeipa-45e92a338fe23ee1daea324e30e03d32f147e8bf.zip |
Use stricter semantics when checking IP address for DNS records
https://fedorahosted.org/freeipa/ticket/2379
-rw-r--r-- | ipalib/plugins/dns.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index 1a75f068e..b7f86e201 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -214,7 +214,7 @@ def _reverse_zone_name(netstr): def _validate_ipaddr(ugettext, ipaddr, ip_version=None): try: - ip = netaddr.IPAddress(ipaddr) + ip = netaddr.IPAddress(ipaddr, flags=netaddr.INET_PTON) if ip_version is not None: if ip.version != ip_version: |