2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Make dig advertise the "dot" ALPN token for DoT connections

This commit makes dig advertise the "dot" ALPN token to make it
possible for ALPN to happen.
This commit is contained in:
Artem Boldariev 2021-08-26 16:36:36 +03:00
parent 25b2c6ad96
commit 382098198e

View File

@ -2783,6 +2783,7 @@ start_tcp(dig_query_t *query) {
if (query->lookup->tls_mode) {
result = isc_tlsctx_createclient(&query->tlsctx);
RUNTIME_CHECK(result == ISC_R_SUCCESS);
isc_tlsctx_enable_dot_client_alpn(query->tlsctx);
isc_nm_tlsdnsconnect(netmgr, &localaddr,
&query->sockaddr, tcp_connected,
query, local_timeout, 0,