From 382098198ea974cc8bcd87b3d691e76018e02dbd Mon Sep 17 00:00:00 2001 From: Artem Boldariev Date: Thu, 26 Aug 2021 16:36:36 +0300 Subject: [PATCH] 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. --- bin/dig/dighost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index ead78f5bcb..c40a1992f7 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -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,