aboutsummaryrefslogtreecommitdiff
path: root/cmd/anubis
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-01-19 00:57:26 -0500
committerXe Iaso <me@xeiaso.net>2025-01-19 00:57:26 -0500
commit10291f2c001ce6a3420852829bcc6eaac107ab82 (patch)
tree942f23402ae73dbbc62a262b867b0317bb9cae3a /cmd/anubis
parent1897175f38ef99d3c06f5e810d371fea53228545 (diff)
downloadx-10291f2c001ce6a3420852829bcc6eaac107ab82.tar.xz
x-10291f2c001ce6a3420852829bcc6eaac107ab82.zip
cmd/anubis: idk what's wrong but something is
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/anubis')
-rw-r--r--cmd/anubis/main.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/cmd/anubis/main.go b/cmd/anubis/main.go
index cd1a1a6..e9b87f5 100644
--- a/cmd/anubis/main.go
+++ b/cmd/anubis/main.go
@@ -208,13 +208,13 @@ func (s *Server) maybeReverseProxy(w http.ResponseWriter, r *http.Request) {
return
}
- slog.Debug("cookie expiration time", "expires", ckie.Expires)
- if !ckie.Expires.IsZero() && ckie.Expires.Before(time.Now()) {
- slog.Debug("cookie expired", "path", r.URL.Path)
- clearCookie(w)
- s.renderIndex(w, r)
- return
- }
+ // slog.Debug("cookie expiration time", "expires", ckie.Expires)
+ // if !ckie.Expires.IsZero() && ckie.Expires.Before(time.Now()) {
+ // slog.Debug("cookie expired", "path", r.URL.Path)
+ // clearCookie(w)
+ // s.renderIndex(w, r)
+ // return
+ // }
token, err := jwt.ParseWithClaims(ckie.Value, jwt.MapClaims{}, func(token *jwt.Token) (interface{}, error) {
return s.pub, nil