fix loadConfigureFile (#239)

This commit is contained in:
koaiwu 2018-03-18 19:41:08 +08:00 committed by ginuerzh
parent f6433a99bc
commit 08d3cbdd2c

View File

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