mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
BUG/MEDIUM: checks: Don't forget to set the "alt_proto" field
The target address type has been added to checks in commit d759e60a3292f425aee66384e87ae227ce191c08, but as part of that address type is the "alt_proto" field, that was not properly set for dynamic servers, That could lead to checks not working for any protocol that use a non-zero alt_proto, such as QUIC. So set it properly.
This commit is contained in:
parent
036ebab3d8
commit
78712c3898
@ -1839,8 +1839,11 @@ int init_srv_check(struct server *srv)
|
||||
if (srv->check.port) {
|
||||
srv->check.addr_type.proto_type = PROTO_TYPE_STREAM;
|
||||
srv->check.addr_type.xprt_type = PROTO_TYPE_STREAM;
|
||||
} else
|
||||
srv->check.alt_proto = 0;
|
||||
} else {
|
||||
srv->check.addr_type = srv->addr_type;
|
||||
srv->check.alt_proto = srv->alt_proto;
|
||||
}
|
||||
}
|
||||
if (net_addr_type_is_quic(&srv->check.addr_type))
|
||||
srv->check.xprt = xprt_get(XPRT_QUIC);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user