Label control connections for log output as "<control>", not "<unknown>".

This commit is contained in:
Sven-Haegar Koch 2012-04-21 03:44:24 +02:00 committed by Guus Sliepen
parent d3f4cf59ca
commit 8b9e5af0d9

View 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());
}