projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3f4cf5
)
Label control connections for log output as "<control>", not "<unknown>".
author
Sven-Haegar Koch
<haegar@sdinet.de>
Sat, 21 Apr 2012 01:44:24 +0000
(
03:44
+0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 8 May 2012 14:18:28 +0000
(16:18 +0200)
src/protocol_auth.c
patch
|
blob
|
history
diff --git
a/src/protocol_auth.c
b/src/protocol_auth.c
index
406ec4f
..
287681b
100644
(file)
--- a/
src/protocol_auth.c
+++ b/
src/protocol_auth.c
@@
-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());
}