1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 18:45:23 +00:00
v2fly/transport/internet/tcp/config.go
2017-01-01 21:19:12 +01:00

20 lines
357 B
Go

package tcp
import (
v2net "v2ray.com/core/common/net"
"v2ray.com/core/transport/internet"
)
func (v *Config) IsConnectionReuse() bool {
if v == nil || v.ConnectionReuse == nil {
return true
}
return v.ConnectionReuse.Enable
}
func init() {
internet.RegisterNetworkConfigCreator(v2net.Network_TCP, func() interface{} {
return new(Config)
})
}