add header auth cache to proxy

This commit is contained in:
pascal
2026-08-10 16:47:01 +02:00
parent f9abe2727f
commit ca6a71a0c8
8 changed files with 740 additions and 3 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ func (c *tunnelValidationCache) put(key tunnelCacheKey, resp *proto.ValidateTunn
// removeKey drops the first occurrence of needle from order. The cache
// uses small slices so a linear scan is cheaper than a map+slice combo.
func removeKey(order []tunnelCacheKey, needle tunnelCacheKey) []tunnelCacheKey {
func removeKey[T comparable](order []T, needle T) []T {
for i, k := range order {
if k == needle {
return append(order[:i], order[i+1:]...)