Normalize backend even if is user-defined (#865)

Signed-off-by: WTFKr0 <thomas.kovatchitch@gmail.com>
This commit is contained in:
WTFKr0 2016-11-23 21:31:37 +01:00 committed by Emile Vauge
parent a8cb905255
commit 2bf9acd95e

View file

@ -402,7 +402,7 @@ func (provider *Docker) getFrontendRule(container dockerData) string {
func (provider *Docker) getBackend(container dockerData) string { func (provider *Docker) getBackend(container dockerData) string {
if label, err := getLabel(container, "traefik.backend"); err == nil { if label, err := getLabel(container, "traefik.backend"); err == nil {
return label return normalize(label)
} }
return normalize(container.Name) return normalize(container.Name)
} }