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