Doesn't ignore web params when web.metrics.prometheus is set

This commit is contained in:
SALLEYRON Julien 2017-11-30 14:12:04 +01:00 committed by Traefiker
parent 40b3c17703
commit 1c8acf3929
2 changed files with 3 additions and 3 deletions

View file

@ -343,7 +343,7 @@ func fillStructRecursive(objValue reflect.Value, defaultPointerValmap map[string
contains := false
for flag := range valmap {
// TODO replace by regexp
if strings.Contains(flag, name+".") {
if strings.HasPrefix(flag, name+".") {
contains = true
break
}