mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-17 09:56:18 -05:00
19 lines
355 B
Go
19 lines
355 B
Go
package transport
|
|
|
|
import "github.com/v2ray/v2ray-core/transport/hub/kcpv"
|
|
|
|
var (
|
|
connectionReuse = true
|
|
enableKcp = false
|
|
KcpConfig *kcpv.Config
|
|
)
|
|
|
|
// IsConnectionReusable returns true if V2Ray is trying to reuse TCP connections.
|
|
func IsConnectionReusable() bool {
|
|
return connectionReuse
|
|
}
|
|
|
|
func IsKcpEnabled() bool {
|
|
return enableKcp
|
|
}
|