KCP: VMess will call setProxyCap to advertise KCP capacity on init

This commit is contained in:
Shelikhoo committed 2016-06-12 13:57:08 +08:00
1 parent 29cb680a4b
commit e72a7cb96f
2 files changed
+9 -2

No files matched your search

+7 -2
View File
@@ -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
})
}