mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-16 09:26:21 -05:00
KCP: VMess will call setProxyCap to advertise KCP capacity on init
This commit is contained in:
parent
29cb680a4b
commit
e72a7cb96f
@ -248,6 +248,8 @@ func init() {
|
|||||||
handler.inboundHandlerManager = space.GetApp(proxyman.APP_ID_INBOUND_MANAGER).(proxyman.InboundHandlerManager)
|
handler.inboundHandlerManager = space.GetApp(proxyman.APP_ID_INBOUND_MANAGER).(proxyman.InboundHandlerManager)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handler.setProxyCap()
|
||||||
|
|
||||||
return handler, nil
|
return handler, nil
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -161,9 +161,14 @@ func init() {
|
|||||||
internal.MustRegisterOutboundHandlerCreator("vmess",
|
internal.MustRegisterOutboundHandlerCreator("vmess",
|
||||||
func(space app.Space, rawConfig interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error) {
|
func(space app.Space, rawConfig interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error) {
|
||||||
vOutConfig := rawConfig.(*Config)
|
vOutConfig := rawConfig.(*Config)
|
||||||
return &VMessOutboundHandler{
|
|
||||||
|
handler := &VMessOutboundHandler{
|
||||||
receiverManager: NewReceiverManager(vOutConfig.Receivers),
|
receiverManager: NewReceiverManager(vOutConfig.Receivers),
|
||||||
meta: meta,
|
meta: meta,
|
||||||
}, nil
|
}
|
||||||
|
|
||||||
|
handler.setProxyCap()
|
||||||
|
|
||||||
|
return handler, nil
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user