mirror of
https://git.wownero.com/wownero/wownero-puddle.git
synced 2024-08-15 01:03:20 +00:00
add keepalived
This commit is contained in:
parent
c918ae4845
commit
7479e6ec43
1 changed files with 6 additions and 0 deletions
|
@ -2072,6 +2072,12 @@ client_on_read(struct bufferevent *bev, void *ctx)
|
||||||
{
|
{
|
||||||
client_send_job(client, false);
|
client_send_job(client, false);
|
||||||
}
|
}
|
||||||
|
else if (strcmp(method, "keepalived") == 0)
|
||||||
|
{
|
||||||
|
char *body = stratum_new_status_body(client->json_id, "KEEPALIVED");
|
||||||
|
evbuffer_add(output, body, strlen(body));
|
||||||
|
free(body);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char *body = stratum_new_error_body(client->json_id, unknown);
|
char *body = stratum_new_error_body(client->json_id, unknown);
|
||||||
|
|
Loading…
Reference in a new issue