Skip to content

Commit

Permalink
BUG/MINOR: don't set srv.Cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
cspargo authored and oktalz committed Jan 18, 2023
1 parent cbfd37d commit 3ed52f3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/service/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ func (s *Service) updateHAProxySrv(client api.HAProxyClient, srvSlot store.HAPro
srv.Address = srvSlot.Address
srv.Maintenance = "disabled"
}
// Cookie/Session persistence
if s.backend.Cookie != nil && s.backend.Cookie.Type == "insert" {
srv.Cookie = srv.Name
}
logger.Tracef("backend %s: about to update server in configuration file : models.Server { Name: %s, Port: %d, Address: %s, Maintenance: %s }", s.backend.Name, srv.Name, *srv.Port, srv.Address, srv.Maintenance)
// Update server
errAPI := client.BackendServerEdit(s.backend.Name, srv)
Expand Down

0 comments on commit 3ed52f3

Please sign in to comment.