Correctly implement bans for clients exceeding hard limit.
This commit is contained in:
parent
efde852c54
commit
4b9a7e8ad5
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue