TUN-6737: Fix datagramV2Type should be declared in its own block so it starts at 0

This commit is contained in:
cthuang 2022-09-05 15:09:53 +01:00
parent f7a14d9200
commit faa86ffeca
1 changed files with 5 additions and 2 deletions

View File

@ -14,9 +14,12 @@ import (
type datagramV2Type byte
const (
typeIDLen = 1
udp datagramV2Type = iota
udp datagramV2Type = iota
ip
)
const (
typeIDLen = 1
// Same as sessionDemuxChan capacity
packetChanCapacity = 16
)