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.
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);