From 5a6565feb933d53309a3356a25ed908d7ee66786 Mon Sep 17 00:00:00 2001 From: gmega Date: Thu, 18 Jun 2026 19:49:31 -0300 Subject: [PATCH] add no-bootstrap-node option when bootstrap node is set to NULL --- easystorage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/easystorage.c b/easystorage.c index 2498004..5639092 100644 --- a/easystorage.c +++ b/easystorage.c @@ -178,6 +178,8 @@ STORAGE_NODE e_storage_new(node_config config) { if (config.bootstrap_node) { pos += snprintf(json + pos, sizeof(json) - pos, ",\"bootstrap-node\":[\"%s\"]", config.bootstrap_node); + } else { + pos += snprintf(json + pos, sizeof(json) - pos, ",\"no-bootstrap-node\":true"); } if (config.nat) {