fixed loading of client config

This commit is contained in:
badaix 2016-03-21 22:57:22 +01:00
parent a9a9443563
commit 1f177e5119
2 changed files with 13 additions and 2 deletions

View file

@ -55,9 +55,16 @@ Config::Config()
{
ClientInfoPtr client = make_shared<ClientInfo>();
client->fromJson(*it);
if (client->host.mac.empty())
continue;
for (const auto& c: clients)
{
if (c->host.mac == client->host.mac)
continue;
}
client->connected = false;
clients.push_back(client);
// logO << "Client:\n" << std::setw(4) << client->toJson() << '\n';
}
}
}