mirror of https://github.com/SChernykh/p2pool
StratumServer: added keepalived method
parent
5eea610f3c
commit
5f406a60a6
|
@ -774,6 +774,10 @@ bool StratumServer::StratumClient::process_request(char* data, uint32_t /*size*/
|
|||
LOGINFO(6, "incoming share from " << log::Gray() << static_cast<char*>(m_addrString));
|
||||
return process_submit(doc, id.GetUint());
|
||||
}
|
||||
else if (strcmp(s, "keepalived") == 0) {
|
||||
LOGINFO(6, "incoming keepalive from " << log::Gray() << static_cast<char*>(m_addrString));
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
LOGWARN(4, "client: invalid JSON request (unknown method)");
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue