From: William Lallemand Date: Tue, 11 Dec 2018 15:10:55 +0000 (+0100) Subject: MINOR: cli: implements 'quit' in the CLI proxy X-Git-Tag: v1.9-dev11~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f61068dbd393de83637a9d026c83378eedc0112;p=thirdparty%2Fhaproxy.git MINOR: cli: implements 'quit' in the CLI proxy Implements the 'quit' command. Works the same way as the CLI command. --- diff --git a/src/cli.c b/src/cli.c index 3171c0a3c0..c6d2265575 100644 --- a/src/cli.c +++ b/src/cli.c @@ -1787,6 +1787,11 @@ int pcli_find_and_exec_kw(struct stream *s, char **args, int argl, char **errmsg } else if (!strcmp("prompt", args[0])) { s->pcli_prompt ^= 1; return argl; /* return the number of elements in the array */ + + } else if (!strcmp("quit", args[0])) { + channel_shutr_now(&s->req); + channel_shutw_now(&s->res); + return argl; /* return the number of elements in the array */ } return 0;