github.com/v2fly/v2ray-core/v4@v4.45.2/transport/internet/tcp/config.go (about)

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