Skip to main content
Sign in
Snippets Groups Projects
Commit cbc32f59 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Fix conversion order if IP addr objects

parent a53a7a46
No related branches found
No related tags found
1 merge request!1CI/CD
......@@ -4,5 +4,5 @@
# Copyright (c) since 2016, CESNET, z. s. p. o.
# Use of this source is governed by an ISC license, see LICENSE file.
__version__ = '0.1.11'
__version__ = '0.1.12'
__author__ = 'Pavel Kácha <pavel.kacha@cesnet.cz>'
......@@ -101,7 +101,7 @@ def URI(s):
def Net4(ip):
for t in ipranges.IP4Net, ipranges.IP4Range, ipranges.IP4:
for t in ipranges.IP4, ipranges.IP4Net, ipranges.IP4Range:
try:
return t(ip)
except ValueError:
......@@ -110,7 +110,7 @@ def Net4(ip):
def Net6(ip):
for t in ipranges.IP6Net, ipranges.IP6Range, ipranges.IP6:
for t in ipranges.IP6, ipranges.IP6Net, ipranges.IP6Range:
try:
return t(ip)
except ValueError:
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment