MINOR: log: add '~' to frontend when the transport layer provides SSL

We used to check if the transport layer was ssl_sock to decide to log
"~" after a frontend's name. Now that QUIC is present, this doesn't work
anymore. Better rely on the transport layer's get_ssl_sock_ctx() method.
This commit is contained in:
Willy Tarreau 2022-04-12 08:08:33 +02:00
parent 9902bf266c
commit 807a3a53bb

View File

@ -2335,7 +2335,7 @@ int sess_build_logline(struct session *sess, struct stream *s, char *dst, size_t
tmplog += iret;
/* sess->listener may be undefined if the session's owner is a health-check */
if (sess->listener && sess->listener->bind_conf->xprt == xprt_get(XPRT_SSL))
if (sess->listener && sess->listener->bind_conf->xprt->get_ssl_sock_ctx)
LOGCHAR('~');
if (tmp->options & LOG_OPT_QUOTE)
LOGCHAR('"');