From 4b9a7e8ad56e26e2cece547e14e0fd8ef21e9e79 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Sun, 19 Mar 2023 10:30:08 +0100 Subject: [PATCH] Correctly implement bans for clients exceeding hard limit. --- handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handler.go b/handler.go index 093306d..c8eb83e 100644 --- a/handler.go +++ b/handler.go @@ -56,6 +56,7 @@ func handleGeminiRequest(conn net.Conn, sysConfig SysConfig, config UserConfig, limited := rl.hardLimited(noPort) if limited { conn.Close() + return } delay, limited := rl.softLimited(noPort) if limited {