From 9a2e0cf3d83cd9797119b6d0b2c46df20d1a49f7 Mon Sep 17 00:00:00 2001 From: a <a@tuxpa.in> Date: Mon, 17 Jun 2024 18:15:56 -0500 Subject: [PATCH] noot --- lib/gat/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gat/server.go b/lib/gat/server.go index 7c350660..81fb5dce 100644 --- a/lib/gat/server.go +++ b/lib/gat/server.go @@ -121,7 +121,7 @@ func (T *Server) Serve(conn *fed.Conn) { T.log.Warn("database not found", zap.String("user", conn.User), zap.String("database", conn.Database)) return nil })) - for j := 0; j < len(T.routes); j++ { + for j := len(T.routes) - 1; j >= 0; j-- { route := T.routes[j] if route.match != nil && !route.match.Matches(conn) { continue -- GitLab