From a968e254a17fcd48743e54ea536fabd4f30c64d1 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Tue, 23 Jan 2024 21:22:28 -0800 Subject: [PATCH] fix incorrect statement about connection ID lengths in the Transport (#4247) --- transport.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transport.go b/transport.go index ccbe32c2..4988bcfe 100644 --- a/transport.go +++ b/transport.go @@ -54,7 +54,8 @@ type Transport struct { Conn net.PacketConn // The length of the connection ID in bytes. - // It can be 0, or any value between 4 and 18. + // It can be any value between 1 and 20. + // Due to the increased risk of collisions, it is not recommended to use connection IDs shorter than 4 bytes. // If unset, a 4 byte connection ID will be used. ConnectionIDLength int