mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 23:02:34 -04: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
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue