github.com/eagleql/xray-core@v1.4.4/transport/internet/quic/quic.go (about)

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