Label control connections for log output as "<control>", not "<unknown>".
This commit is contained in:
parent
d3f4cf59ca
commit
8b9e5af0d9
1 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue