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:
f9ffeb6
)
BUG/MINOR: add missing modes in proxy_mode_str()
author
William Lallemand
<wlallemand@haproxy.org>
Tue, 8 Mar 2022 10:50:59 +0000
(11:50 +0100)
committer
Christopher Faulet
<cfaulet@haproxy.com>
Thu, 10 Mar 2022 09:45:25 +0000
(10:45 +0100)
Add the missing PR_MODE_SYSLOG and PR_MODE_PEERS in proxy_mode_str().
Could be backported in every maintained versions.
(cherry picked from commit
06715af9e565c82f39aa157c09d5b9e823490d14
)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/proxy.c
patch
|
blob
|
history
diff --git
a/src/proxy.c
b/src/proxy.c
index
c671831
..
6890eb0
100644
(file)
--- a/
src/proxy.c
+++ b/
src/proxy.c
@@
-378,6
+378,10
@@
const char *proxy_mode_str(int mode) {
return "http";
else if (mode == PR_MODE_CLI)
return "cli";
+ else if (mode == PR_MODE_SYSLOG)
+ return "syslog";
+ else if (mode == PR_MODE_PEERS)
+ return "peers";
else
return "unknown";
}