fix loadConfigureFile

This commit is contained in:
koaiwu 2018-03-15 16:46:47 +08:00 committed by GitHub
parent 6afb0a8f59
commit bbe74226d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -553,7 +553,7 @@ func loadConfigureFile(configureFile string) error {
routes = append(routes, cfg.route) routes = append(routes, cfg.route)
} }
for _, route := range cfg.Routes { for _, route := range cfg.Routes {
if len(cfg.route.ServeNodes) > 0 { if len(route.ServeNodes) > 0 {
routes = append(routes, route) routes = append(routes, route)
} }
} }