From ce06ddd669363651d335f5a4c05e1a347020a3c1 Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Tue, 24 Jan 2023 12:12:58 -0700 Subject: Redis time --- lib/chessh/ssh/daemon.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chessh/ssh/daemon.ex') diff --git a/lib/chessh/ssh/daemon.ex b/lib/chessh/ssh/daemon.ex index 6be6732..d602781 100644 --- a/lib/chessh/ssh/daemon.ex +++ b/lib/chessh/ssh/daemon.ex @@ -37,7 +37,7 @@ defmodule Chessh.SSH.Daemon do "#{username} on bucket #{rateId} got their password wrong, or they don't exist! Point at them and laugh!!!!" ) - case Hammer.check_rate_inc(rateId, jail_timeout_ms, jail_attempt_threshold, 1) do + case Hammer.check_rate_inc(:redis, rateId, jail_timeout_ms, jail_attempt_threshold, 1) do {:allow, _count} -> Logger.debug("Bucket #{rateId} can continue to brute force though") false -- cgit v1.2.3-70-g09d2