projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Retry connections through control socket
[tinc]
/
src
/
control.c
diff --git
a/src/control.c
b/src/control.c
index
3e57f55
..
6a39e02
100644
(file)
--- a/
src/control.c
+++ b/
src/control.c
@@
-124,6
+124,12
@@
static void handle_control_data(struct bufferevent *event, void *data) {
goto respond;
}
goto respond;
}
+ if(req.type == REQ_RETRY) {
+ logger(LOG_NOTICE, _("Got '%s' command"), "retry");
+ retry();
+ goto respond;
+ }
+
logger(LOG_DEBUG, _("Malformed control command received"));
res.res_errno = EINVAL;
logger(LOG_DEBUG, _("Malformed control command received"));
res.res_errno = EINVAL;