github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/transport/internet/tcp/config.go (about)

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