1
0
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:
Shelikhoo 2016-06-12 13:57:08 +08:00
parent 29cb680a4b
commit e72a7cb96f
No known key found for this signature in database
GPG Key ID: 7791BDB0709ABD21
2 changed files with 9 additions and 2 deletions

View File

@ -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
}) })
} }

View File

@ -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
}) })
} }