Integrated config less startup with only given CCServer and token #14

Fixed time drift issues on dashboard by sending server time to dashboard and use this for comparisson
This commit is contained in:
BenDroid 2018-01-12 23:11:00 +01:00
parent ede0149552
commit bdb0bb9926
6 changed files with 65 additions and 31 deletions

View file

@ -328,8 +328,8 @@ Options::Options(int argc, char **argv) :
parseConfig(Platform::defaultConfigName());
}
if (!m_pools[0]->isValid()) {
fprintf(stderr, "No pool URL supplied. Exiting.\n");
if (!m_pools[0]->isValid() && (!m_ccHost || m_ccPort == 0)) {
fprintf(stderr, "Neither pool nor CCServer URL supplied. Exiting.\n");
return;
}