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:
parent
25b2c6ad96
commit
382098198e
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user