mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
327 B
20 lines
327 B
8 years ago
|
package websocket
|
||
8 years ago
|
|
||
8 years ago
|
import (
|
||
|
v2net "v2ray.com/core/common/net"
|
||
|
"v2ray.com/core/transport/internet"
|
||
8 years ago
|
)
|
||
8 years ago
|
|
||
8 years ago
|
func (v *ConnectionReuse) IsEnabled() bool {
|
||
|
if v == nil {
|
||
8 years ago
|
return false
|
||
|
}
|
||
8 years ago
|
return v.Enable
|
||
8 years ago
|
}
|
||
|
|
||
8 years ago
|
func init() {
|
||
8 years ago
|
internet.RegisterNetworkConfigCreator(v2net.Network_WebSocket, func() interface{} {
|
||
8 years ago
|
return new(Config)
|
||
|
})
|
||
|
}
|