Guillaume Valadon 2013-08-02 10:38:38 +02:00
parent 6695b89afb
commit ed457e5f9e
1 changed files with 2 additions and 0 deletions

View File

@ -291,6 +291,8 @@ class RandIP6(RandString):
ip.append("%04x" % n)
if len(ip) == 9:
ip.remove("")
if ip[-1] == "":
ip[-1] = 0
return ":".join(ip)
class RandOID(RandString):