Skip to content
Snippets Groups Projects
Commit 02ddefc2 authored by Pierre LALET's avatar Pierre LALET
Browse files

Fix IPv6 random addresses (Pekka Pietikäinen), closes #5086 and #5136)

parent ff04f75e
Branches
No related tags found
No related merge requests found
......@@ -294,7 +294,7 @@ class RandIP6(RandString):
remain = random.randint(0,remain)
for j in range(remain):
ip.append("%04x" % random.randint(0,65535))
if n == 0:
elif n == 0:
ip.append("0")
elif not n:
ip.append("")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment