1
0
Fork 0

Correctly implement bans for clients exceeding hard limit.

This commit is contained in:
Solderpunk 2023-03-19 10:30:08 +01:00
parent efde852c54
commit 4b9a7e8ad5

View file

@ -56,6 +56,7 @@ func handleGeminiRequest(conn net.Conn, sysConfig SysConfig, config UserConfig,
limited := rl.hardLimited(noPort) limited := rl.hardLimited(noPort)
if limited { if limited {
conn.Close() conn.Close()
return
} }
delay, limited := rl.softLimited(noPort) delay, limited := rl.softLimited(noPort)
if limited { if limited {