MINOR: protocols: make use of the protocol type to select the protocol
Instead of using sock_type and ctrl_type to select a protocol, let's
make use of the new protocol type. For now they always match so there
is no change. This is applied to address parsing and to socket retrieval
from older processes.
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 8921702..ed5efda 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -161,7 +161,7 @@
* is selected, regardless of bind_conf settings. We then need
* to initialize QUIC params.
*/
- if (proto->sock_type == SOCK_DGRAM && proto->ctrl_type == SOCK_STREAM) {
+ if (proto->proto_type == PROTO_TYPE_DGRAM && proto->ctrl_type == SOCK_STREAM) {
bind_conf->xprt = xprt_get(XPRT_QUIC);
quic_transport_params_init(&bind_conf->quic_params, 1);
}