core: Report the c-ares version.

This commit is contained in:
Cory McWilliams 2024-12-28 20:38:07 -05:00
parent 5e24d4f322
commit db9b7a22c2

View File

@ -17,6 +17,7 @@
#include "util.js.h"
#include "version.h"
#include "ares.h"
#include "backtrace.h"
#include "quickjs.h"
#include "sqlite3.h"
@ -701,6 +702,7 @@ static JSValue _tf_task_version(JSContext* context, JSValueConst this_val, int a
JS_SetPropertyStr(context, version, "openssl", JS_NewString(context, OpenSSL_version(OPENSSL_VERSION)));
#endif
const char* sodium_version_string();
JS_SetPropertyStr(context, version, "c-ares", JS_NewString(context, ares_version(NULL)));
JS_SetPropertyStr(context, version, "libsodium", JS_NewString(context, sodium_version_string()));
JS_SetPropertyStr(context, version, "zlib", JS_NewString(context, zlibVersion()));
tf_trace_end(task->_trace);