X-Git-Url: https://git.stg.codes/ssmd.git/blobdiff_plain/25dd1ac0696ca47e586e58d4309fc4c36e11d1dc..HEAD:/src/syncer.cpp diff --git a/src/syncer.cpp b/src/syncer.cpp index b8a22b2..436c396 100644 --- a/src/syncer.cpp +++ b/src/syncer.cpp @@ -64,7 +64,7 @@ Syncer::~Syncer() void Syncer::run(const bool & running, bool & reload) { logger << "Syncer::run()" << std::endl; - while (running) { + while (true) { if (wait()) { logger << "Syncer::run() - wait stopped by signal" << std::endl; if (!running) @@ -166,6 +166,7 @@ bool Syncer::getDBData(std::string & data) const if (handle) { char errorBuffer[CURL_ERROR_SIZE]; curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0); // Accept self-signed certs + curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0); // Accept certs for wrong hosts curl_easy_setopt(handle, CURLOPT_LOW_SPEED_LIMIT, 1); // Less than 1 bps curl_easy_setopt(handle, CURLOPT_LOW_SPEED_TIME, 60); // During 60 secs curl_easy_setopt(handle, CURLOPT_URL, _settingsParser.settings().dataURL().c_str()); // Our URL