mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-03 16:24:04 +00:00
KCP: VMess will call setProxyCap to advertise KCP capacity on init
This commit is contained in:
2 files changed
+9
-2
No files matched your search
@@ -161,9 +161,14 @@ func init() {
|
||||
internal.MustRegisterOutboundHandlerCreator("vmess",
|
||||
func(space app.Space, rawConfig interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error) {
|
||||
vOutConfig := rawConfig.(*Config)
|
||||
return &VMessOutboundHandler{
|
||||
|
||||
handler := &VMessOutboundHandler{
|
||||
receiverManager: NewReceiverManager(vOutConfig.Receivers),
|
||||
meta: meta,
|
||||
}, nil
|
||||
}
|
||||
|
||||
handler.setProxyCap()
|
||||
|
||||
return handler, nil
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user