X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincctl.c;h=39f89426e69d42396636bc03a3dd858b0ef6d38c;hb=d82fcc88f355e3c8144478a860dfae0b299004a9;hp=9b16a7b7a33beba1d3468d5bb5a7b56b8e36e7c5;hpb=f0a57eab4cfd64d4f8261b1885a2072177f9e76b;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index 9b16a7b7..39f89426 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -92,6 +92,7 @@ static void usage(bool status) { " purge Purge unreachable nodes\n" " debug N Set debug level\n" " retry Retry all outgoing connections\n" + " reload Partial reload of configuration\n" "\n")); printf(_("Report bugs to tinc@tinc-vpn.org.\n")); } @@ -601,6 +602,10 @@ int main(int argc, char *argv[], char *envp[]) { return send_ctl_request_cooked(fd, REQ_RETRY, NULL, 0) != -1; } + if(!strcasecmp(argv[optind], "reload")) { + return send_ctl_request_cooked(fd, REQ_RELOAD, NULL, 0) != -1; + } + fprintf(stderr, _("Unknown command `%s'.\n"), argv[optind]); usage(true);