|
|
@ -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 */ |
|
|
|
/* We should only accept authorised requests from here on */ |
|
|
|
if (!client->authorised) { |
|
|
|
if (!client->authorised) { |
|
|
|
/* Dropping unauthorised clients here also allows the
|
|
|
|
LOGINFO("Dropping %s from unauthorised client %"PRId64" %s", method, |
|
|
|
* stratifier process to restart since it will have lost all |
|
|
|
client_id, client->address); |
|
|
|
* 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); |
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|