Skip to content

Commit

Permalink
updated api url
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 authored and ohlidalp committed Mar 12, 2022
1 parent 08101a7 commit 3fd15bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 9 additions & 0 deletions source/main/gui/panels/GUI_RepositorySelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ std::vector<GUI::ResourceCategories> 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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions source/main/system/CVar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3fd15bc

Please # to comment.