X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconf.c;h=b1529e573115a1cb9528c664a03e8db4f10adc0d;hp=b30feedd20d175fd7b36498a76dd0f100460cb58;hb=ce059e36fdb3d3049c278e8b2f36b03c93778996;hpb=d93a37928b75b17ac5e1eae5c2d62fd0760a6608 diff --git a/src/conf.c b/src/conf.c index b30feedd..b1529e57 100644 --- a/src/conf.c +++ b/src/conf.c @@ -385,14 +385,14 @@ bool read_server_config(void) { return x; } -bool read_connection_config(connection_t *c) { +bool read_host_config(splay_tree_t *config_tree, const char *name) { char *fname; bool x; - read_config_options(c->config_tree, c->name); + read_config_options(config_tree, name); - xasprintf(&fname, "%s" SLASH "hosts" SLASH "%s", confbase, c->name); - x = read_config_file(c->config_tree, fname); + xasprintf(&fname, "%s" SLASH "hosts" SLASH "%s", confbase, name); + x = read_config_file(config_tree, fname); free(fname); return x;