From 63e0132b0565913383f4837fe5979d98d027d34b Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Fri, 23 Feb 2024 12:50:23 +0100 Subject: [PATCH] add version to variables --- misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc.c b/misc.c index 0851d87..6570062 100644 --- a/misc.c +++ b/misc.c @@ -28,6 +28,7 @@ #include "misc.h" #include "util.h" #include "json.h" +#include "version.h" char *bindump(char *buf, long buflen) { @@ -270,6 +271,7 @@ void display_json_variables(struct udata *ud, bool plain) JsonNode *json = json_mkobject(); char *js; + j_str(json, "VERSION", VERSION); j_str(json, "CONFIGFILE", CONFIGFILE); j_str(json, "OTR_STORAGEDIR", STORAGEDIR); #if WITH_MQTT