github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/transport/internet/quic/quic.go (about) 1 // +build !confonly 2 3 package quic 4 5 import ( 6 "v2ray.com/core/common" 7 "v2ray.com/core/transport/internet" 8 ) 9 10 //go:generate go run v2ray.com/core/common/errors/errorgen 11 12 // Here is some modification needs to be done before update quic vendor. 13 // * use bytespool in buffer_pool.go 14 // * set MaxReceivePacketSize to 1452 - 32 (16 bytes auth, 16 bytes head) 15 // 16 // 17 18 const protocolName = "quic" 19 const internalDomain = "quic.internal.v2ray.com" 20 21 func init() { 22 common.Must(internet.RegisterProtocolConfigCreator(protocolName, func() interface{} { 23 return new(Config) 24 })) 25 }