Advertise WS cap

pull/238/head
Shelikhoo 8 years ago
parent cb1356be75
commit 508f79f95f
No known key found for this signature in database
GPG Key ID: 7791BDB0709ABD21

@ -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…
Cancel
Save