identify client by id instead of MAC

This commit is contained in:
Johannes Pohl 2016-11-24 12:02:32 +01:00
parent 433a2ff252
commit 9ec135e1b8
7 changed files with 61 additions and 50 deletions

View file

@ -145,6 +145,12 @@ int main (int argc, char **argv)
exit(EXIT_SUCCESS);
}
if (instance <= 0)
{
cout << "instance id must be >= 1\n";
exit(EXIT_FAILURE);
}
std::clog.rdbuf(new Log("snapclient", LOG_DAEMON));
signal(SIGHUP, signal_handler);