Browse Source

Remove throttled flag once user is authorised

master
Con Kolivas 9 years ago
parent
commit
ae1d659832
  1. 1
      src/stratifier.c

1
src/stratifier.c

@ -2760,6 +2760,7 @@ static json_t *parse_authorise(stratum_instance_t *client, const json_t *params_
LOGNOTICE("Authorised client %"PRId64" %s worker %s as user %s", LOGNOTICE("Authorised client %"PRId64" %s worker %s as user %s",
client->id, client->address, buf, user->username); client->id, client->address, buf, user->username);
user->auth_backoff = DEFAULT_AUTH_BACKOFF; /* Reset auth backoff time */ user->auth_backoff = DEFAULT_AUTH_BACKOFF; /* Reset auth backoff time */
user->throttled = false;
} else { } else {
LOGNOTICE("Client %"PRId64" %s worker %s failed to authorise as user %s", LOGNOTICE("Client %"PRId64" %s worker %s failed to authorise as user %s",
client->id, client->address, buf,user->username); client->id, client->address, buf,user->username);

Loading…
Cancel
Save