possibly fix recurring backend timeout

This commit is contained in:
Lion Kortlepel
2020-11-17 23:21:21 +01:00
parent a78f65b274
commit e2a45601b3
3 changed files with 3 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ std::string PostHTTP(const std::string& IP, const std::string& Fields) {
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5);
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
if (res != CURLE_OK)