Merge pull request #1411 from lucas-clemente/min-initial-connid-len

drop Initial packets that have a too short Destination Connection ID
This commit is contained in:
Marten Seemann
2018-06-19 20:53:25 +07:00
committed by GitHub
3 changed files with 16 additions and 0 deletions

View File

@@ -151,3 +151,6 @@ const MinPacingDelay time.Duration = 100 * time.Microsecond
// so we need to know this value in advance (or encode it into the connection ID).
// TODO: make this configurable
const ConnectionIDLen = 8
// MinConnectionIDLenInitial is the minimum length of the destination connection ID on an Initial packet.
const MinConnectionIDLenInitial = 8