]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Label control connections for log output as "<control>", not "<unknown>".
[meshlink] / src / protocol_auth.c
index 406ec4f9baffdf7593b052a1b5a2b598e036b987..287681b5d5973e8327c93fd400cee92290d5978a 100644 (file)
@@ -72,6 +72,10 @@ bool id_h(connection_t *c, char *request) {
                c->status.control = true;
                c->allow_request = CONTROL;
                c->last_ping_time = time(NULL) + 3600;
+
+               free(c->name);
+                c->name = xstrdup("<control>");
+
                return send_request(c, "%d %d %d", ACK, TINC_CTL_VERSION_CURRENT, getpid());
        }