diff --git a/src/game/client/updater/http_client.cpp b/src/game/client/updater/http_client.cpp index ea3b3828..18e87b27 100644 --- a/src/game/client/updater/http_client.cpp +++ b/src/game/client/updater/http_client.cpp @@ -1,12 +1,10 @@ #include +#include #include -#include #include "hud.h" #include "cl_util.h" #include "http_client.h" -constexpr char CA_FILE_PATH[] = "ui/resource/ca-certificates.crt"; - CHttpClient &CHttpClient::Get() { static CHttpClient instance; @@ -149,6 +147,13 @@ void CHttpClient::WorkerThreadFunc() noexcept LogPrintf(ConColor::Yellow, "HTTP Client: Warning! SSL certificate check disabled with -bhl_no_ssl_check\n"); } + if (gEngfuncs.CheckParm("-bhl_curl_verbose", nullptr)) + curl_easy_setopt(hCurl, CURLOPT_VERBOSE, 1); + +#if PLATFORM_LINUX + curl_easy_setopt(hCurl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA); +#endif + for (;;) { std::unique_lock lock(m_Mutex);