mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35: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:
@@ -2783,6 +2783,7 @@ start_tcp(dig_query_t *query) {
|
|||||||
if (query->lookup->tls_mode) {
|
if (query->lookup->tls_mode) {
|
||||||
result = isc_tlsctx_createclient(&query->tlsctx);
|
result = isc_tlsctx_createclient(&query->tlsctx);
|
||||||
RUNTIME_CHECK(result == ISC_R_SUCCESS);
|
RUNTIME_CHECK(result == ISC_R_SUCCESS);
|
||||||
|
isc_tlsctx_enable_dot_client_alpn(query->tlsctx);
|
||||||
isc_nm_tlsdnsconnect(netmgr, &localaddr,
|
isc_nm_tlsdnsconnect(netmgr, &localaddr,
|
||||||
&query->sockaddr, tcp_connected,
|
&query->sockaddr, tcp_connected,
|
||||||
query, local_timeout, 0,
|
query, local_timeout, 0,
|
||||||
|
Reference in New Issue
Block a user