Skip to content

Commit 41bded8

Browse files
committed
BUG/MEDIUM: tcpcheck: Properly retrieve tcpcheck type to install the best mux
When the healthcheck section support was added, the tcpcheck type was moved into the tcpcheck ruleset. However, conn_install_mux_chk() function was not updated accordingly. So the TCP mode was always returned. No backport needed. This patch is related to haproxy#3324 but it is not the root cause of the issue.
1 parent ca53ee1 commit 41bded8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ int conn_install_mux_chk(struct connection *conn, void *ctx, struct session *ses
412412
struct ist mux_proto;
413413
const char *alpn_str = NULL;
414414
int alpn_len = 0;
415-
int mode = tcpchk_rules_type_to_proto_mode(check->tcpcheck->flags);
415+
int mode = tcpchk_rules_type_to_proto_mode(check->tcpcheck->rs->flags);
416416

417417
conn_get_alpn(conn, &alpn_str, &alpn_len);
418418
mux_proto = ist2(alpn_str, alpn_len);

0 commit comments

Comments
 (0)