From df11fda8ea06806fabc9af9ef82a02bc94834caf Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 4 Feb 2016 12:20:58 +1100 Subject: [PATCH] Reset failed_authtime on successful authorisation --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index c1912e71..5b0369c0 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -5007,6 +5007,7 @@ static json_t *parse_authorise(stratum_instance_t *client, const json_t *params_ LOGNOTICE("Authorised client %"PRId64" worker %s as user %s", client->id, buf, user->username); } + user->failed_authtime = 0; user->auth_backoff = DEFAULT_AUTH_BACKOFF; /* Reset auth backoff time */ user->throttled = false; } else {