Skip to content
Snippets Groups Projects
Commit 4d0c44c1 authored by Jan Mach's avatar Jan Mach
Browse files

Fix: Fixed bug in calculations of aggregated IP range.

(Redmine issue: #4277)
parent 7ad0eaf5
No related branches found
No related tags found
No related merge requests found
......@@ -20,4 +20,4 @@ open-source project.
__author__ = "Jan Mach <jan.mach@cesnet.cz>"
__credits__ = "Pavel Kácha <pavel.kacha@cesnet.cz>, Andrea Kropáčová <andrea.kropacova@cesnet.cz>"
__version__ = "2.4.23"
__version__ = "2.4.24"
......@@ -206,7 +206,7 @@ class Idea: # pylint: disable=locally-disabled,too-many-instance-attributes,t
for rng in ranges:
if ipmin is None or rng.low() < ipmin:
ipmin = rng.low()
if ipmax is None or rng.low() > ipmax:
if ipmax is None or rng.high() > ipmax:
ipmax = rng.high()
return rngcls((ipmin, ipmax))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment