projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc5c821
)
MINOR: cli: delare the CLI frontend as an internal proxy
author
William Lallemand
<wlallemand@haproxy.org>
Fri, 13 Aug 2021 13:31:33 +0000
(15:31 +0200)
committer
William Lallemand
<wlallemand@haproxy.org>
Fri, 13 Aug 2021 13:34:10 +0000
(15:34 +0200)
Declare the CLI frontend as an internal proxy so we can check the
PR_CAP_INT flag instead of the global.fe_cli pointer for generic use
cases.
src/cli.c
patch
|
blob
|
history
diff --git
a/src/cli.c
b/src/cli.c
index
3bc22cf
..
9d6354c
100644
(file)
--- a/
src/cli.c
+++ b/
src/cli.c
@@
-380,7
+380,7
@@
static struct proxy *cli_alloc_fe(const char *name, const char *file, int line)
proxies_list = fe;
fe->last_change = now.tv_sec;
fe->id = strdup("GLOBAL");
- fe->cap = PR_CAP_FE;
+ fe->cap = PR_CAP_FE|PR_CAP_INT;
fe->maxconn = 10; /* default to 10 concurrent connections */
fe->timeout.client = MS_TO_TICKS(10000); /* default timeout of 10 seconds */
fe->conf.file = strdup(file);