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