diff --git a/router/middleware/config.go b/router/middleware/config.go index 67f798ec..c90c9ac8 100644 --- a/router/middleware/config.go +++ b/router/middleware/config.go @@ -32,6 +32,9 @@ func setupConfig(c *cli.Context) *model.Settings { func sliceToMap2(s []string) map[string]bool { v := map[string]bool{} for _, ss := range s { + if ss == "" { + continue + } v[ss] = true } return v