core: Report the c-ares version.
This commit is contained in:
parent
5e24d4f322
commit
db9b7a22c2
@ -17,6 +17,7 @@
|
|||||||
#include "util.js.h"
|
#include "util.js.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
|
#include "ares.h"
|
||||||
#include "backtrace.h"
|
#include "backtrace.h"
|
||||||
#include "quickjs.h"
|
#include "quickjs.h"
|
||||||
#include "sqlite3.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)));
|
JS_SetPropertyStr(context, version, "openssl", JS_NewString(context, OpenSSL_version(OPENSSL_VERSION)));
|
||||||
#endif
|
#endif
|
||||||
const char* sodium_version_string();
|
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, "libsodium", JS_NewString(context, sodium_version_string()));
|
||||||
JS_SetPropertyStr(context, version, "zlib", JS_NewString(context, zlibVersion()));
|
JS_SetPropertyStr(context, version, "zlib", JS_NewString(context, zlibVersion()));
|
||||||
tf_trace_end(task->_trace);
|
tf_trace_end(task->_trace);
|
||||||
|
Loading…
Reference in New Issue
Block a user