2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Fix TLS Stream in accordance with PROXY Stream over TLS support

This commit makes TLS Stream code to take PROXY Stream over TLS
support into account.
This commit is contained in:
Artem Boldariev
2023-05-18 21:52:23 +03:00
parent e5852bea1c
commit 999923c423

View File

@@ -979,7 +979,7 @@ isc_nm_listentls(isc_nm_t *mgr, uint32_t workers, isc_sockaddr_t *iface,
if (proxy) {
result = isc_nm_listenproxystream(
mgr, workers, iface, tlslisten_acceptcb, tlssock,
backlog, quota, &tlssock->outer);
backlog, quota, NULL, &tlssock->outer);
} else {
result = isc_nm_listentcp(mgr, workers, iface,
tlslisten_acceptcb, tlssock, backlog,
@@ -1209,7 +1209,8 @@ isc_nm_tlsconnect(isc_nm_t *mgr, isc_sockaddr_t *local, isc_sockaddr_t *peer,
if (proxy) {
isc_nm_proxystreamconnect(mgr, local, peer, tcp_connected, sock,
sock->connect_timeout, proxy_info);
sock->connect_timeout, NULL, NULL,
proxy_info);
} else {
isc_nm_tcpconnect(mgr, local, peer, tcp_connected, sock,
sock->connect_timeout);