transport.go 355 B

123456789101112131415161718
  1. package transport
  2. import "github.com/v2ray/v2ray-core/transport/hub/kcpv"
  3. var (
  4. connectionReuse = true
  5. enableKcp = false
  6. KcpConfig *kcpv.Config
  7. )
  8. // IsConnectionReusable returns true if V2Ray is trying to reuse TCP connections.
  9. func IsConnectionReusable() bool {
  10. return connectionReuse
  11. }
  12. func IsKcpEnabled() bool {
  13. return enableKcp
  14. }