mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-03 02:32:03 +00:00
MINOR: cli: implements 'quit' in the CLI proxy
Implements the 'quit' command. Works the same way as the CLI command.
This commit is contained in:
parent
5b80fa2864
commit
5f61068dbd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user