Added support for "rig id" protocol extension.
This commit is contained in:
parent
6d40f2dd1a
commit
b9fec2fcc4
10 changed files with 38 additions and 11 deletions
|
@ -397,6 +397,10 @@ void Client::login()
|
|||
params.AddMember("pass", rapidjson::StringRef(m_pool.password()), allocator);
|
||||
params.AddMember("agent", rapidjson::StringRef(m_agent), allocator);
|
||||
|
||||
if (m_pool.rigId()) {
|
||||
params.AddMember("rigid", rapidjson::StringRef(m_pool.rigId()), allocator);
|
||||
}
|
||||
|
||||
doc.AddMember("params", params, allocator);
|
||||
|
||||
rapidjson::StringBuffer buffer(0, 512);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue