mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 00:07:47 +00:00
StratumServer: added keepalived method
This commit is contained in:
parent
5eea610f3c
commit
5f406a60a6
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue