1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-30 22:15:27 -05:00

remove ErrMissingApplication

This commit is contained in:
Darien Raymond
2016-11-21 21:13:01 +01:00
parent 55be94f8e3
commit c041740940
8 changed files with 11 additions and 17 deletions

View File

@@ -45,8 +45,7 @@ func NewRouter(config *Config, space app.Space) *Router {
}
if !space.HasApp(dns.APP_ID) {
log.Error("Router: DNS is not found in the space.")
return app.ErrMissingApplication
return errors.New("Router: DNS is not found in the space.")
}
r.dnsServer = space.GetApp(dns.APP_ID).(dns.Server)
return nil