add keepalived

This commit is contained in:
Jethro Grassie 2019-03-15 20:19:04 -04:00
parent c918ae4845
commit 7479e6ec43
No known key found for this signature in database
GPG key ID: DE8ED755616565BB

View file

@ -2072,6 +2072,12 @@ client_on_read(struct bufferevent *bev, void *ctx)
{
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
{
char *body = stratum_new_error_body(client->json_id, unknown);