From 11b0a88cdd875084cad498dc859041eb30a4ddc9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 31 Jan 2026 16:48:11 -0400 Subject: [PATCH] v1.1.2 - Fix hardcoded version string in print_version() - use VERSION define from main.h The print_version() function was displaying a hardcoded 'v1.0.0' string instead of using the VERSION define from main.h. This caused version mismatches where the git tag and main.h showed v1.1.1 but the binary reported v1.0.0. Now print_version() uses the VERSION macro, ensuring all version displays are consistent and automatically updated when increment_and_push.sh updates main.h. --- src/main.c | 2 +- src/main.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index fd6c141..90b7515 100644 --- a/src/main.c +++ b/src/main.c @@ -1426,7 +1426,7 @@ void print_usage(const char* program_name) { // Print version information void print_version() { - printf("C Nostr Relay Server v1.0.0\n"); + printf("C Nostr Relay Server %s\n", VERSION); printf("Event-based configuration system\n"); printf("Built with nostr_core_lib integration\n"); printf("\n"); diff --git a/src/main.h b/src/main.h index 0b2c3d5..256fbd5 100644 --- a/src/main.h +++ b/src/main.h @@ -12,8 +12,8 @@ // Version information (auto-updated by build system) #define VERSION_MAJOR 1 #define VERSION_MINOR 1 -#define VERSION_PATCH 1 -#define VERSION "v1.1.1" +#define VERSION_PATCH 2 +#define VERSION "v1.1.2" // Avoid VERSION_MAJOR redefinition warning from nostr_core_lib #undef VERSION_MAJOR