From a0569d2d3cdca5d6ed78e0df77b08ccbbec52570 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 2 Nov 2026 02:22:56 +0100 Subject: Report the version, event machanism and feature flags with -v --- ot_config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ot_config.c') diff --git a/ot_config.c b/ot_config.c index 272acf1..5da6642 100644 --- a/ot_config.c +++ b/ot_config.c @@ -432,6 +432,7 @@ static void help(char *name) { HELPLINE("-d dir", "specify directory to try to chroot to (default: \".\")"); HELPLINE("-u user", "specify user under whose privileges opentracker should run (default: \"nobody\")"); HELPLINE("-A ip[/bits]", "bless an ip address or net as admin address (e.g. to allow syncs from this address)"); + HELPLINE("-v", "report version, event mechanism and the feature flags opentracker was built with"); #ifdef WANT_ACCESSLIST_BLACK HELPLINE("-b file", "specify blacklist file."); #elif defined(WANT_ACCESSLIST_WHITE) @@ -566,6 +567,7 @@ void config_parse(int argc, char **argv) { char *cursor = buffer; stats_return_tracker_version(&cursor, buffer + sizeof(buffer) - 1); + stats_return_tracker_features(&cursor, buffer + sizeof(buffer) - 1); *cursor = 0; fputs(buffer, stderr); exit(0); -- cgit v1.3