Merge branch 'master' into jgrpp
# Conflicts: # .github/workflows/release-linux.yml # .github/workflows/release-macos.yml # src/industry_cmd.cpp # src/industry_cmd.h # src/network/core/http_curl.cpp # src/network/core/tcp_http.cpp # src/network/core/tcp_http.h # src/network/network_content.h # src/script/api/script_goal.cpp # src/script/api/script_industry.cpp # src/script/api/script_league.cpp # src/script/api/script_story_page.cpp # src/script/api/script_town.cpp # src/train.h # src/train_cmd.cpp
This commit is contained in:
@@ -74,6 +74,9 @@
|
||||
#ifdef WITH_ZLIB
|
||||
# include <zlib.h>
|
||||
#endif
|
||||
#ifdef WITH_CURL
|
||||
# include <curl/curl.h>
|
||||
#endif
|
||||
|
||||
#include "safeguards.h"
|
||||
|
||||
@@ -359,6 +362,16 @@ char *CrashLog::LogLibraries(char *buffer, const char *last) const
|
||||
buffer += seprintf(buffer, last, " Zlib: %s\n", zlibVersion());
|
||||
#endif
|
||||
|
||||
#ifdef WITH_CURL
|
||||
auto *curl_v = curl_version_info(CURLVERSION_NOW);
|
||||
buffer += seprintf(buffer, last, " Curl: %s\n", curl_v->version);
|
||||
if (curl_v->ssl_version != nullptr) {
|
||||
buffer += seprintf(buffer, last, " Curl SSL: %s\n", curl_v->ssl_version);
|
||||
} else {
|
||||
buffer += seprintf(buffer, last, " Curl SSL: none\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
buffer += seprintf(buffer, last, "\n");
|
||||
return buffer;
|
||||
}
|
||||
|
Reference in New Issue
Block a user