mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-13 14:44:15 +00:00
generalized event handler
This commit is contained in:
16 files changed
+80
-32
No files matched your search
@@ -39,7 +39,7 @@ func NewDefaultDispatcher(ctx context.Context, config *dispatcher.Config) (*Defa
|
||||
return nil, newError("no space in context")
|
||||
}
|
||||
d := &DefaultDispatcher{}
|
||||
space.OnInitialize(func() error {
|
||||
space.On(app.SpaceInitializing, func(interface{}) error {
|
||||
d.ohm = proxyman.OutboundHandlerManagerFromSpace(space)
|
||||
if d.ohm == nil {
|
||||
return newError("OutboundHandlerManager is not found in the space")
|
||||
|
||||
Reference in new issue
Block a user