config.go 329 B

12345678910111213141516171819
  1. package ws
  2. import (
  3. v2net "v2ray.com/core/common/net"
  4. "v2ray.com/core/transport/internet"
  5. )
  6. func (this *ConnectionReuse) IsEnabled() bool {
  7. if this == nil {
  8. return false
  9. }
  10. return this.Enable
  11. }
  12. func init() {
  13. internet.RegisterNetworkConfigCreator(v2net.Network_WebSocket, func() interface{} {
  14. return new(Config)
  15. })
  16. }