mirror of https://github.com/v2ray/v2ray-core
fix lint warning
parent
40d7c40489
commit
026f7e3cc2
5
v2ray.go
5
v2ray.go
|
@ -109,14 +109,13 @@ func newSimpleServer(config *Config) (*simpleServer, error) {
|
||||||
common.Must(space.AddApplication(d))
|
common.Must(space.AddApplication(d))
|
||||||
}
|
}
|
||||||
|
|
||||||
disp := dispatcher.FromSpace(space)
|
if disp := dispatcher.FromSpace(space); disp == nil {
|
||||||
if disp == nil {
|
|
||||||
d, err := app.CreateAppFromConfig(ctx, new(dispatcher.Config))
|
d, err := app.CreateAppFromConfig(ctx, new(dispatcher.Config))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
common.Must(space.AddApplication(d))
|
common.Must(space.AddApplication(d))
|
||||||
disp = d.(dispatcher.Interface)
|
// disp = d.(dispatcher.Interface)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, inbound := range config.Inbound {
|
for _, inbound := range config.Inbound {
|
||||||
|
|
Loading…
Reference in New Issue