mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-31 02:22:07 +00: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;
|
||||
|
||||
/* 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('"');
|
||||
|
Loading…
Reference in New Issue
Block a user