diff options
Diffstat (limited to 'packet')
-rw-r--r-- | packet/bgp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp.go b/packet/bgp.go index 1b5cbbb5..9ae1aa32 100644 --- a/packet/bgp.go +++ b/packet/bgp.go @@ -536,7 +536,7 @@ type IPv6AddrPrefix struct { func NewIPAddrPrefix(length uint8, prefix string) *IPAddrPrefix { return &IPAddrPrefix{ - IPAddrPrefixDefault{length, net.ParseIP(prefix)}, + IPAddrPrefixDefault{length, net.ParseIP(prefix).To4()}, 4, } } |