X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet_setup.c;h=5390d80491296913f7090bcb83491054c7f7e376;hb=d959cb6c3232507db9ef0cb0873a934255e70bf0;hp=ba17b099abcf80a06d09893edf02fc2d05b70469;hpb=d120093edac59d1e634d970ee486f4a2a205d2fa;p=meshlink diff --git a/src/net_setup.c b/src/net_setup.c index ba17b099..5390d804 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -42,7 +42,7 @@ bool node_read_ecdsa_public_key(node_t *n) { char *p; init_configuration(&config_tree); - if(!read_host_config(config_tree, n->name)) + if(!read_host_config(mesh, config_tree, n->name)) goto exit; /* First, check for simple ECDSAPublicKey statement */ @@ -65,7 +65,7 @@ bool read_ecdsa_public_key(connection_t *c) { if(!c->config_tree) { init_configuration(&c->config_tree); - if(!read_host_config(c->config_tree, c->name)) + if(!read_host_config(mesh, c->config_tree, c->name)) return false; } @@ -278,7 +278,7 @@ bool setup_myself(void) { mesh->self->connection = new_connection(); mesh->self->name = name; mesh->self->connection->name = xstrdup(name); - read_host_config(mesh->config, name); + read_host_config(mesh, mesh->config, name); if(!get_config_string(lookup_config(mesh->config, "Port"), &mesh->myport)) mesh->myport = xstrdup("655");