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