From db9b7a22c2321676cc94ac7665104018b61a8e36 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 28 Dec 2024 20:38:07 -0500 Subject: [PATCH] core: Report the c-ares version. --- src/task.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/task.c b/src/task.c index f4063dad..faf72e22 100644 --- a/src/task.c +++ b/src/task.c @@ -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);