]> tinc-vpn.org Git - tinc/blobdiff - src/control.c
Retry connections through control socket
[tinc] / src / control.c
index 3e57f5512f4f759b1043ea23d0634232b7c0cdef..6a39e02eeca2395aca9f9f2406d394c86fa7cf6d 100644 (file)
@@ -124,6 +124,12 @@ static void handle_control_data(struct bufferevent *event, void *data) {
                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;