sLog.Debug(LOG_STRATUM,"Stratum client disconnected from %s. Total clients: %u",asio::ip::address_v4(client->GetIP()).to_string().c_str(),_clients.size());
sLog.Info(LOG_STRATUM,"Stratum client disconnected from %s. Total clients: %u",asio::ip::address_v4(client->GetIP()).to_string().c_str(),_clients.size());
}
}
voidBan(uint32ip,uint64time)
voidBan(uint32ip,uint64time)
@ -136,7 +136,7 @@ namespace Stratum
if(!error){
if(!error){
if(client->Start()){
if(client->Start()){
_clients.insert(client);
_clients.insert(client);
sLog.Debug(LOG_STRATUM,"New stratum client accepted from %s. Total clients: %u",asio::ip::address_v4(client->GetIP()).to_string().c_str(),_clients.size());
sLog.Info(LOG_STRATUM,"New stratum client accepted from %s. Total clients: %u",asio::ip::address_v4(client->GetIP()).to_string().c_str(),_clients.size());
}
}
}else{
}else{
sLog.Debug(LOG_STRATUM,"Failed to accept stratum client");
sLog.Debug(LOG_STRATUM,"Failed to accept stratum client");