|
|
@ -3457,11 +3457,9 @@ static json_t *parse_authorise(stratum_instance_t *client, const json_t *params_ |
|
|
|
if (client->sdata && client->sdata->proxy && client->sdata->proxy->global) { |
|
|
|
if (client->sdata && client->sdata->proxy && client->sdata->proxy->global) { |
|
|
|
sdata_t *ckp_sdata = ckp->data; |
|
|
|
sdata_t *ckp_sdata = ckp->data; |
|
|
|
|
|
|
|
|
|
|
|
if (userproxy_headroom(ckp_sdata, client->user_id)) { |
|
|
|
if (userproxy_headroom(ckp_sdata, client->user_id)) |
|
|
|
LOGWARNING("reconnecting to user!"); |
|
|
|
|
|
|
|
reconnect_client(ckp_sdata, client); |
|
|
|
reconnect_client(ckp_sdata, client); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
LOGNOTICE("Authorised client %"PRId64" worker %s as user %s", |
|
|
|
LOGNOTICE("Authorised client %"PRId64" worker %s as user %s", |
|
|
|
client->id, buf, user->username); |
|
|
|
client->id, buf, user->username); |
|
|
|