add no-bootstrap-node option when bootstrap node is set to NULL

This commit is contained in:
gmega 2026-06-18 19:49:31 -03:00
parent 41ec1c4104
commit 5a6565feb9
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18

View File

@ -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) {