1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-23 02:26:49 -05:00
v2fly/transport/internet/tcp/config.go

20 lines
323 B
Go
Raw Normal View History

2016-06-14 16:54:08 -04:00
package tcp
2016-10-02 17:43:58 -04:00
import (
v2net "v2ray.com/core/common/net"
"v2ray.com/core/transport/internet"
2016-06-14 16:54:08 -04:00
)
2016-10-02 17:43:58 -04:00
2016-10-17 08:35:13 -04:00
func (this *ConnectionReuse) IsEnabled() bool {
if this == nil {
return true
}
return this.Enable
}
2016-10-02 17:43:58 -04:00
func init() {
2016-10-16 08:22:21 -04:00
internet.RegisterNetworkConfigCreator(v2net.Network_TCP, func() interface{} {
2016-10-02 17:43:58 -04:00
return new(Config)
})
}