From 5b8cdf457bb95a0d77e9a16a5a754150245bcfbb Mon Sep 17 00:00:00 2001 From: TapTap Date: Thu, 3 Sep 2026 21:51:29 +0200 Subject: [PATCH] fix: bump protocol version for size-only field --- src/shared/config.h | 2 +- tests/test_config.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/config.h b/src/shared/config.h index eb2ef2e..d5fd456 100644 --- a/src/shared/config.h +++ b/src/shared/config.h @@ -129,7 +129,7 @@ typedef struct Config { char* compress_choice; } Config; -#define PROTOCOL_VERSION "2.2.0" +#define PROTOCOL_VERSION "2.3.0" #define DEFAULT_CHUNK_SIZE (10 * 1024 * 1024) Config* config_create(void); diff --git a/tests/test_config.c b/tests/test_config.c index 290d980..ee27870 100644 --- a/tests/test_config.c +++ b/tests/test_config.c @@ -188,11 +188,11 @@ static void test_config_send_receive() { } static void test_config_send_receive_version_mismatch() { - /* Create a config with a different protocol version */ + /* A peer using the previous wire format must be rejected. */ Config* cfg = config_create(); EXPECT_NOT_NULL(cfg); free(cfg->version); - cfg->version = str_dup("0.0"); + cfg->version = str_dup("2.2.0"); cfg->send_directory = str_dup("/src"); cfg->receive_root_directory = str_dup("/dst");