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