hysteria2.go 369 B

123456789101112131415161718
  1. package hysteria2
  2. import (
  3. "github.com/v2fly/v2ray-core/v5/common"
  4. "github.com/v2fly/v2ray-core/v5/transport/internet"
  5. )
  6. //go:generate go run github.com/v2fly/v2ray-core/v5/common/errors/errorgen
  7. const (
  8. protocolName = "hysteria2"
  9. )
  10. func init() {
  11. common.Must(internet.RegisterProtocolConfigCreator(protocolName, func() interface{} {
  12. return new(Config)
  13. }))
  14. }