... with https inspection enabled. Forwarding the response from
the proxy to the client will not work as the client expects
an encrypted response.
Sponsored by: Robert Klemme
{
log_error(LOG_LEVEL_ERROR, "Forwarder hasn't established "
"connection with destination server.");
-
- write_socket(csp->cfd, server_response, (size_t)len);
+ rsp = error_response(csp, "connect-failed");
+ if (rsp)
+ {
+ send_crunch_response(csp, rsp);
+ }
mark_server_socket_tainted(csp);
close_client_ssl_connection(csp);
return;