MINOR: quic-be: Correct the QUIC protocol lookup
From connect_server(), QUIC protocol could not be retreived by protocol_lookup() because of the PROTO_TYPE_STREAM default passed as argument. In place to support QUIC srv->addr_type.proto_type may be safely passed.
This commit is contained in:
parent
1e45690656
commit
7c76252d8a
@ -1992,7 +1992,9 @@ int connect_server(struct stream *s)
|
||||
/* set the correct protocol on the output stream connector */
|
||||
|
||||
if (srv) {
|
||||
if (conn_prepare(srv_conn, protocol_lookup(srv_conn->dst->ss_family, PROTO_TYPE_STREAM, srv->alt_proto), srv->xprt)) {
|
||||
struct protocol *proto = protocol_lookup(srv_conn->dst->ss_family, srv->addr_type.proto_type, srv->alt_proto);
|
||||
|
||||
if (conn_prepare(srv_conn, proto, srv->xprt)) {
|
||||
conn_free(srv_conn);
|
||||
return SF_ERR_INTERNAL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user