summaryrefslogtreecommitdiffstats
path: root/srclimit.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--srclimit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/srclimit.c b/srclimit.c
index 3dbdbf6..33116fa 100644
--- a/srclimit.c
+++ b/srclimit.c
@@ -381,6 +381,10 @@ srclimit_penalise(struct xaddr *addr, int penalty_type)
penalty_secs = penalty_cfg.penalty_noauth;
reason = "penalty: connections without attempting authentication";
break;
+ case SRCLIMIT_PENALTY_REFUSECONNECTION:
+ penalty_secs = penalty_cfg.penalty_refuseconnection;
+ reason = "penalty: connection prohibited by RefuseConnection";
+ break;
case SRCLIMIT_PENALTY_GRACE_EXCEEDED:
penalty_secs = penalty_cfg.penalty_crash;
reason = "penalty: exceeded LoginGraceTime";