]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: add missing modes in proxy_mode_str()
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 8 Mar 2022 10:50:59 +0000 (11:50 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 8 Mar 2022 11:21:36 +0000 (12:21 +0100)
Add the missing PR_MODE_SYSLOG and PR_MODE_PEERS in proxy_mode_str().

Could be backported in every maintained versions.

src/proxy.c

index 946fe13d599f8bb13d0f19b242dea750757119e3..dbcab474fa48daf2b1a685e28ac3bb56c214634e 100644 (file)
@@ -379,6 +379,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";
 }