1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 09:56:18 -05:00
v2fly/transport/transport.go

19 lines
355 B
Go
Raw Normal View History

2016-06-01 19:49:25 -04:00
package transport
2016-06-11 07:51:02 -04:00
import "github.com/v2ray/v2ray-core/transport/hub/kcpv"
2016-06-01 19:49:25 -04:00
var (
2016-06-10 20:05:29 -04:00
connectionReuse = true
2016-06-11 07:51:02 -04:00
enableKcp = false
KcpConfig *kcpv.Config
2016-06-01 19:49:25 -04:00
)
2016-06-11 07:29:33 -04:00
// IsConnectionReusable returns true if V2Ray is trying to reuse TCP connections.
2016-06-02 14:52:52 -04:00
func IsConnectionReusable() bool {
return connectionReuse
2016-06-01 19:49:25 -04:00
}
2016-06-11 07:51:02 -04:00
func IsKcpEnabled() bool {
return enableKcp
}