X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fcontrol.c;fp=src%2Fcontrol.c;h=57e0ce09816061e394cb17b53ec7b857c6898435;hb=d82fcc88f355e3c8144478a860dfae0b299004a9;hp=6a39e02eeca2395aca9f9f2406d394c86fa7cf6d;hpb=f0a57eab4cfd64d4f8261b1885a2072177f9e76b;p=tinc diff --git a/src/control.c b/src/control.c index 6a39e02e..57e0ce09 100644 --- 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;