mirror of https://github.com/secdev/scapy.git
This commit is contained in:
parent
6695b89afb
commit
ed457e5f9e
|
@ -291,6 +291,8 @@ class RandIP6(RandString):
|
||||||
ip.append("%04x" % n)
|
ip.append("%04x" % n)
|
||||||
if len(ip) == 9:
|
if len(ip) == 9:
|
||||||
ip.remove("")
|
ip.remove("")
|
||||||
|
if ip[-1] == "":
|
||||||
|
ip[-1] = 0
|
||||||
return ":".join(ip)
|
return ":".join(ip)
|
||||||
|
|
||||||
class RandOID(RandString):
|
class RandOID(RandString):
|
||||||
|
|
Loading…
Reference in New Issue