Skip to content

Commit 1ae8a3c

Browse files
authored
ipv6 is 16 bytes
1 parent 4785408 commit 1ae8a3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocols/shared/src/main/scala/fs2/protocols/Ip4sCodecs.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ object Ip4sCodecs {
3131
bytes(4).xmapc(b => Ipv4Address.fromBytes(b.toArray).get)(a => ByteVector.view(a.toBytes))
3232

3333
val ipv6: Codec[Ipv6Address] =
34-
bytes(8).xmapc(b => Ipv6Address.fromBytes(b.toArray).get)(a => ByteVector.view(a.toBytes))
34+
bytes(16).xmapc(b => Ipv6Address.fromBytes(b.toArray).get)(a => ByteVector.view(a.toBytes))
3535

3636
val macAddress: Codec[MacAddress] =
3737
bytes(6).xmapc(b => MacAddress.fromBytes(b.toArray).get)(m => ByteVector.view(m.toBytes))

0 commit comments

Comments
 (0)