From 8f70354e3c57256bcf7e9024c72e7fe6eb03df5e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 12 Feb 2023 17:29:18 +0100 Subject: [PATCH] internal: remove debug remnant from cookie testing Signed-off-by: Jens Langhammer --- internal/outpost/proxyv2/application/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/outpost/proxyv2/application/session.go b/internal/outpost/proxyv2/application/session.go index 5861df8cb..55510da44 100644 --- a/internal/outpost/proxyv2/application/session.go +++ b/internal/outpost/proxyv2/application/session.go @@ -28,7 +28,7 @@ func (a *Application) getStore(p api.ProxyOutpostConfig, externalHost *url.URL) // Add one to the validity to ensure we don't have a session with indefinite length maxAge = int(*t) + 1 } - if config.Get().Redis.Host == "foo" { + if config.Get().Redis.Host != "" { rs, err := redistore.NewRediStoreWithDB(10, "tcp", fmt.Sprintf("%s:%d", config.Get().Redis.Host, config.Get().Redis.Port), config.Get().Redis.Password, strconv.Itoa(config.Get().Redis.DB)) if err != nil { panic(err)