mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-09 08:40:12 +00:00
remove ErrMissingApplication
This commit is contained in:
8 files changed
+11
-17
No files matched your search
@@ -46,8 +46,7 @@ func NewServer(config *ServerConfig, space app.Space, meta *proxy.InboundHandler
|
||||
}
|
||||
space.InitializeApplication(func() error {
|
||||
if !space.HasApp(dispatcher.APP_ID) {
|
||||
log.Error("Socks|Server: Dispatcher is not found in the space.")
|
||||
return app.ErrMissingApplication
|
||||
return errors.New("Socks|Server: Dispatcher is not found in the space.")
|
||||
}
|
||||
s.packetDispatcher = space.GetApp(dispatcher.APP_ID).(dispatcher.PacketDispatcher)
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user