mirror of
https://tildegit.org/solderpunk/molly-brown
synced 2024-04-27 18:05:04 +02:00
Correctly implement bans for clients exceeding hard limit.
This commit is contained in:
parent
efde852c54
commit
4b9a7e8ad5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue