]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Refactor outgoing connection handling.
[meshlink] / src / protocol_auth.c
index 88c625544261cd42ec618456c190d812633796e8..908ab2472cb2ad20981f4fed904588090f87a56f 100644 (file)
@@ -212,9 +212,8 @@ bool id_h(connection_t *c, const char *request) {
        if(!c->config_tree) {
                init_configuration(&c->config_tree);
 
-               if(!read_connection_config(c)) {
-                       logger(DEBUG_ALWAYS, LOG_ERR, "Peer %s had unknown identity (%s)", c->hostname,
-                                  c->name);
+               if(!read_host_config(c->config_tree, c->name)) {
+                       logger(DEBUG_ALWAYS, LOG_ERR, "Peer %s had unknown identity (%s)", c->hostname, c->name);
                        return false;
                }