diff --git a/source/main/gui/panels/GUI_RepositorySelector.cpp b/source/main/gui/panels/GUI_RepositorySelector.cpp index 2c5adaa2dc..8e100ddf56 100644 --- a/source/main/gui/panels/GUI_RepositorySelector.cpp +++ b/source/main/gui/panels/GUI_RepositorySelector.cpp @@ -139,6 +139,9 @@ std::vector GetResourceCategories(std::string portal_ur CURL *curl = curl_easy_init(); curl_easy_setopt(curl, CURLOPT_URL, repolist_url.c_str()); curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); +#ifdef _WIN32 + curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA); +#endif // _WIN32 curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "gzip"); curl_easy_setopt(curl, CURLOPT_USERAGENT, user_agent.c_str()); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, CurlWriteFunc); @@ -183,6 +186,9 @@ void GetResources(std::string portal_url) CURL *curl = curl_easy_init(); curl_easy_setopt(curl, CURLOPT_URL, repolist_url.c_str()); curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); +#ifdef _WIN32 + curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA); +#endif // _WIN32 curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "gzip"); curl_easy_setopt(curl, CURLOPT_USERAGENT, user_agent.c_str()); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, CurlWriteFunc); @@ -259,6 +265,9 @@ void GetResourceFiles(std::string portal_url, int resource_id) CURL *curl = curl_easy_init(); curl_easy_setopt(curl, CURLOPT_URL, resource_url.c_str()); curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); +#ifdef _WIN32 + curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA); +#endif // _WIN32 curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "gzip"); curl_easy_setopt(curl, CURLOPT_USERAGENT, user_agent.c_str()); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, CurlWriteFunc); diff --git a/source/main/system/CVar.cpp b/source/main/system/CVar.cpp index ef33bfb7ca..825e7cc945 100644 --- a/source/main/system/CVar.cpp +++ b/source/main/system/CVar.cpp @@ -70,8 +70,7 @@ void Console::cVarSetupBuiltins() App::mp_player_name = this->cVarCreate("mp_player_name", "Nickname", CVAR_ARCHIVE, "Player"); App::mp_player_token = this->cVarCreate("mp_player_token", "User Token", CVAR_ARCHIVE | CVAR_NO_LOG); App::mp_api_url = this->cVarCreate("mp_api_url", "Online API URL", CVAR_ARCHIVE, "http://api.rigsofrods.org"); - - App::remote_query_url = this->cVarCreate("remote_query_url", "", CVAR_ARCHIVE, "http://dev.api.rigsofrods.org"); + App::remote_query_url = this->cVarCreate("remote_query_url", "", CVAR_ARCHIVE, "https://v2.api.rigsofrods.org"); App::diag_auto_spawner_report= this->cVarCreate("diag_auto_spawner_report","AutoActorSpawnerReport", CVAR_ARCHIVE | CVAR_TYPE_BOOL, "false"); App::diag_camera = this->cVarCreate("diag_camera", "Camera Debug", CVAR_ARCHIVE | CVAR_TYPE_BOOL, "false");