diff options
author | Mike Crute <mike@crute.us> | 2023-08-19 17:25:09 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2023-08-19 17:25:09 -0700 |
commit | 267ee2d8a78fa7425af765eb583cab3248995a31 (patch) | |
tree | 38f0dd8b2b85a3570988201297563726598efbf3 /app | |
parent | afbec26c42528ad810fbc08c6a233c7ea75239d4 (diff) | |
download | websocket_proxy-267ee2d8a78fa7425af765eb583cab3248995a31.tar.bz2 websocket_proxy-267ee2d8a78fa7425af765eb583cab3248995a31.tar.xz websocket_proxy-267ee2d8a78fa7425af765eb583cab3248995a31.zip |
Add server-driven time limits
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/proxy.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/proxy.go b/app/controllers/proxy.go index 9e3ec13..0777c93 100644 --- a/app/controllers/proxy.go +++ b/app/controllers/proxy.go | |||
@@ -72,6 +72,9 @@ func (h *ProxyHandler) Handle(c echo.Context) error { | |||
72 | return c.NoContent(http.StatusUnauthorized) | 72 | return c.NoContent(http.StatusUnauthorized) |
73 | } | 73 | } |
74 | 74 | ||
75 | // TODO: Set Access-Control-Max-Age header if policy requires time-limited | ||
76 | // sessions then terminate the session once that timer expires | ||
77 | |||
75 | wsconn, err := h.Upgrader.Upgrade(c.Response(), c.Request(), nil) | 78 | wsconn, err := h.Upgrader.Upgrade(c.Response(), c.Request(), nil) |
76 | if err != nil { | 79 | if err != nil { |
77 | return err | 80 | return err |