diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 02:22:56 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 02:22:56 +0100 |
| commit | a0569d2d3cdca5d6ed78e0df77b08ccbbec52570 (patch) | |
| tree | 4f9367f218f69f8864c81d95668ac27758d8d3dd /ot_config.c | |
| parent | 6de11792013cd087897fd7c2a7519fd26211b105 (diff) | |
Report the version, event machanism and feature flags with -v
Diffstat (limited to 'ot_config.c')
| -rw-r--r-- | ot_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { | |||
| 432 | HELPLINE("-d dir", "specify directory to try to chroot to (default: \".\")"); | 432 | HELPLINE("-d dir", "specify directory to try to chroot to (default: \".\")"); |
| 433 | HELPLINE("-u user", "specify user under whose privileges opentracker should run (default: \"nobody\")"); | 433 | HELPLINE("-u user", "specify user under whose privileges opentracker should run (default: \"nobody\")"); |
| 434 | HELPLINE("-A ip[/bits]", "bless an ip address or net as admin address (e.g. to allow syncs from this address)"); | 434 | HELPLINE("-A ip[/bits]", "bless an ip address or net as admin address (e.g. to allow syncs from this address)"); |
| 435 | HELPLINE("-v", "report version, event mechanism and the feature flags opentracker was built with"); | ||
| 435 | #ifdef WANT_ACCESSLIST_BLACK | 436 | #ifdef WANT_ACCESSLIST_BLACK |
| 436 | HELPLINE("-b file", "specify blacklist file."); | 437 | HELPLINE("-b file", "specify blacklist file."); |
| 437 | #elif defined(WANT_ACCESSLIST_WHITE) | 438 | #elif defined(WANT_ACCESSLIST_WHITE) |
| @@ -566,6 +567,7 @@ void config_parse(int argc, char **argv) { | |||
| 566 | char *cursor = buffer; | 567 | char *cursor = buffer; |
| 567 | 568 | ||
| 568 | stats_return_tracker_version(&cursor, buffer + sizeof(buffer) - 1); | 569 | stats_return_tracker_version(&cursor, buffer + sizeof(buffer) - 1); |
| 570 | stats_return_tracker_features(&cursor, buffer + sizeof(buffer) - 1); | ||
| 569 | *cursor = 0; | 571 | *cursor = 0; |
| 570 | fputs(buffer, stderr); | 572 | fputs(buffer, stderr); |
| 571 | exit(0); | 573 | exit(0); |
