mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
enable kcp
This commit is contained in:
parent
9b6dc6bcea
commit
71ce8f4416
@ -221,7 +221,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
|
return internet.StreamConnectionTypeRawTCP | internet.StreamConnectionTypeTCP | internet.StreamConnectionTypeKCP
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
|
@ -157,7 +157,7 @@ func (this *VMessOutboundHandler) handleResponse(session *raw.ClientSession, con
|
|||||||
type Factory struct{}
|
type Factory struct{}
|
||||||
|
|
||||||
func (this *Factory) StreamCapability() internet.StreamConnectionType {
|
func (this *Factory) StreamCapability() internet.StreamConnectionType {
|
||||||
return internet.StreamConnectionTypeRawTCP | internet.StreamConnectionTypeTCP
|
return internet.StreamConnectionTypeRawTCP | internet.StreamConnectionTypeTCP | internet.StreamConnectionTypeKCP
|
||||||
}
|
}
|
||||||
|
|
||||||
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