mirror of
https://github.com/logos-storage/easylibstorage.git
synced 2026-07-30 06:53:29 +00:00
add no-bootstrap-node option when bootstrap node is set to NULL
This commit is contained in:
parent
41ec1c4104
commit
5a6565feb9
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user