mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-10 14:18:40 +00:00
Add Datagram transport
This commit is contained in:
parent
414379ca96
commit
c660bf7e37
7 changed files with 468 additions and 2 deletions
17
transport/internet/quic/quic.go
Normal file
17
transport/internet/quic/quic.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package quic
|
||||
|
||||
import (
|
||||
"github.com/xtls/xray-core/common"
|
||||
"github.com/xtls/xray-core/transport/internet"
|
||||
)
|
||||
|
||||
const (
|
||||
protocolName = "quic"
|
||||
internalDomain = "quic.internal.example.com"
|
||||
)
|
||||
|
||||
func init() {
|
||||
common.Must(internet.RegisterProtocolConfigCreator(protocolName, func() interface{} {
|
||||
return new(Config)
|
||||
}))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue