mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
Advertise WS cap
This commit is contained in:
parent
cb1356be75
commit
508f79f95f
@ -242,7 +242,7 @@ func (this *VMessInboundHandler) HandleConnection(connection internet.Connection
|
|||||||
type Factory struct{}
|
type Factory struct{}
|
||||||
|
|
||||||
func (this *Factory) StreamCapability() internet.StreamConnectionType {
|
func (this *Factory) StreamCapability() internet.StreamConnectionType {
|
||||||
return internet.StreamConnectionTypeRawTCP | internet.StreamConnectionTypeTCP | internet.StreamConnectionTypeKCP
|
return internet.StreamConnectionTypeRawTCP | internet.StreamConnectionTypeTCP | internet.StreamConnectionTypeKCP | internet.StreamConnectionTypeWebSocket
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Factory) Create(space app.Space, rawConfig interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error) {
|
func (this *Factory) Create(space app.Space, rawConfig interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error) {
|
||||||
|
@ -158,7 +158,7 @@ func (this *VMessOutboundHandler) handleResponse(session *encoding.ClientSession
|
|||||||
type Factory struct{}
|
type Factory struct{}
|
||||||
|
|
||||||
func (this *Factory) StreamCapability() internet.StreamConnectionType {
|
func (this *Factory) StreamCapability() internet.StreamConnectionType {
|
||||||
return internet.StreamConnectionTypeRawTCP | internet.StreamConnectionTypeTCP | internet.StreamConnectionTypeKCP
|
return internet.StreamConnectionTypeRawTCP | internet.StreamConnectionTypeTCP | internet.StreamConnectionTypeKCP | internet.StreamConnectionTypeWebSocket
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Factory) Create(space app.Space, rawConfig interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error) {
|
func (this *Factory) Create(space app.Space, rawConfig interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user