mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02:00
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:
parent
9902bf266c
commit
807a3a53bb
@ -2335,7 +2335,7 @@ int sess_build_logline(struct session *sess, struct stream *s, char *dst, size_t
|
|||||||
tmplog += iret;
|
tmplog += iret;
|
||||||
|
|
||||||
/* sess->listener may be undefined if the session's owner is a health-check */
|
/* 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('~');
|
LOGCHAR('~');
|
||||||
if (tmp->options & LOG_OPT_QUOTE)
|
if (tmp->options & LOG_OPT_QUOTE)
|
||||||
LOGCHAR('"');
|
LOGCHAR('"');
|
||||||
|
Loading…
Reference in New Issue
Block a user