mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-09-04 19:26:36 +02:00
Fixed sticky session bug
- Fixed sticky session bug in new active fallback lb implementation
This commit is contained in:
@@ -109,6 +109,11 @@ func GetUpstreamsAsString(upstreams []*Upstream) string {
|
||||
return strings.Join(targets, ", ")
|
||||
}
|
||||
|
||||
// Reset the current session store and clear all previous sessions
|
||||
func (m *RouteManager) ResetSessions() {
|
||||
m.SessionStore = sessions.NewCookieStore([]byte(m.Options.SystemUUID))
|
||||
}
|
||||
|
||||
func (m *RouteManager) Close() {
|
||||
//Close the session store
|
||||
m.SessionStore.MaxAge(0)
|
||||
|
Reference in New Issue
Block a user