From ae2b00842b57924da1f7aa1971572afb5e6bd1d4 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 24 Apr 2015 11:07:33 +1000 Subject: [PATCH] Allow unauthorised clients to send other messages till they've authorised but silently ignore them --- src/stratifier.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index e5f704a3..25f9cdd5 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -3443,12 +3443,8 @@ static void parse_method(sdata_t *sdata, stratum_instance_t *client, const int64 /* We should only accept authorised requests from here on */ if (!client->authorised) { - /* Dropping unauthorised clients here also allows the - * stratifier process to restart since it will have lost all - * the stratum instance data. Clients will just reconnect. */ - LOGINFO("Dropping unauthorised client %"PRId64" %s", client_id, client->address); - snprintf(buf, 255, "dropclient=%"PRId64, client_id); - send_proc(client->ckp->connector, buf); + LOGINFO("Dropping %s from unauthorised client %"PRId64" %s", method, + client_id, client->address); return; }