Fix Docker & KV templates for sticky

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2016-09-28 16:29:19 +02:00
parent 291c3b6dbc
commit 462d8b3e74
No known key found for this signature in database
GPG key ID: D808B4C167352E59
8 changed files with 59 additions and 147 deletions

View file

@ -546,12 +546,11 @@ func (server *Server) loadConfig(configurations configs, globalConfiguration Glo
}
stickysession := configuration.Backends[frontend.Backend].LoadBalancer.Sticky
var cookiename string
cookiename := "_TRAEFIK_BACKEND"
var sticky *roundrobin.StickySession
if stickysession {
sticky = roundrobin.NewStickySession(cookiename)
cookiename = "_TRAEFIK_BACKEND"
}
switch lbMethod {