config.go 297 B

12345678910111213141516
  1. // +build !confonly
  2. package tcp
  3. import (
  4. "github.com/v2fly/v2ray-core/v4/common"
  5. "github.com/v2fly/v2ray-core/v4/transport/internet"
  6. )
  7. const protocolName = "tcp"
  8. func init() {
  9. common.Must(internet.RegisterProtocolConfigCreator(protocolName, func() interface{} {
  10. return new(Config)
  11. }))
  12. }