Skip to content

Commit faa86ff

Browse files
committed
TUN-6737: Fix datagramV2Type should be declared in its own block so it starts at 0
1 parent f7a14d9 commit faa86ff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

quic/datagramv2.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ import (
1414
type datagramV2Type byte
1515

1616
const (
17-
typeIDLen = 1
18-
udp datagramV2Type = iota
17+
udp datagramV2Type = iota
1918
ip
19+
)
20+
21+
const (
22+
typeIDLen = 1
2023
// Same as sessionDemuxChan capacity
2124
packetChanCapacity = 16
2225
)

0 commit comments

Comments
 (0)