X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fcontrol.c;h=2c5d4be847eba078069795c134f4cce929ff2d64;hp=19ac37a4dd23857200ccd4ca84e91314086afc81;hb=1065879c8c6e8cdf8d3755024241f31eaabd4138;hpb=6eaefb4dbce240334e35f67d9f3db5d4f44e49c9 diff --git a/src/control.c b/src/control.c index 19ac37a4..2c5d4be8 100644 --- a/src/control.c +++ b/src/control.c @@ -97,6 +97,12 @@ static void handle_control_data(struct bufferevent *event, void *data) { goto respond; } + if(req.type == REQ_PURGE) { + logger(LOG_NOTICE, _("Got '%s' command"), "purge"); + purge(); + goto respond; + } + logger(LOG_DEBUG, _("Malformed control command received")); res.res_errno = EINVAL;