commit | 06715af9e565c82f39aa157c09d5b9e823490d14 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.org> | Tue Mar 08 11:50:59 2022 +0100 |
committer | William Lallemand <wlallemand@haproxy.org> | Tue Mar 08 12:21:36 2022 +0100 |
tree | ff79ce0a1645cef563495091dbddd7e9eb655ef8 | |
parent | c4e56dc58c9ada7c4a8d585cb117a5b825916002 [diff] |
BUG/MINOR: add missing modes in proxy_mode_str() Add the missing PR_MODE_SYSLOG and PR_MODE_PEERS in proxy_mode_str(). Could be backported in every maintained versions.
diff --git a/src/proxy.c b/src/proxy.c index 946fe13..dbcab47 100644 --- a/src/proxy.c +++ b/src/proxy.c
@@ -379,6 +379,10 @@ 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"; }