From aa5ec3cea82a006dbc031c8fdde5a26fcefa2c18 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 6 Jan 2021 17:52:38 +0100 Subject: [PATCH] chat(): Use client_use_ssl(csp) instead of http->ssl ... in a place where it is more appropriate. Currently the difference doesn't matter, but it will when we start supporting upgrading the protocol from http to https behind the client's back. --- jcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jcc.c b/jcc.c index 04fd5b6b..a5e561f5 100644 --- a/jcc.c +++ b/jcc.c @@ -4256,7 +4256,7 @@ static void chat(struct client_state *csp) } #endif /* def FEATURE_CONNECTION_KEEP_ALIVE */ #ifdef FEATURE_HTTPS_INSPECTION - if (http->ssl && !use_ssl_tunnel) + if (client_use_ssl(csp) && !use_ssl_tunnel) { int ret; /* -- 2.39.2