diff --git a/include/haproxy/proxy.h b/include/haproxy/proxy.h index 039077242..547c6718f 100644 --- a/include/haproxy/proxy.h +++ b/include/haproxy/proxy.h @@ -92,6 +92,8 @@ struct proxy *cli_find_frontend(struct appctx *appctx, const char *arg); */ static inline const char *proxy_type_str(struct proxy *proxy) { + if (proxy->mode == PR_MODE_PEERS) + return "peers section"; return proxy_cap_str(proxy->cap); }