- Use the same interface listening port discovery code for all needed
protocols.
- Port to string only when needed before getaddrinfo().
+ - Do not open unencrypted channels next to encrypted ones on the same
+ port.
21 January 2025: Wouter
- Fix compile of interface check code when dnscrypt or quic is
}
}
+ /* Check if both UDP and TCP ports should be open.
+ * In the case of encrypted channels, probably an unencrypted channel
+ * at the same port is not desired. */
+ if((is_ssl || is_https) && !is_doq) do_udp = do_auto = 0;
+ if((is_doq) && !(is_https || is_ssl)) do_tcp = 0;
+
if(do_auto) {
ub_sock = calloc(1, sizeof(struct unbound_socket));
if(!ub_sock)