remove listener access log for mtls for insecure server which can't use mtls

This commit is contained in:
Caleb Doxsey 2024-10-31 12:08:00 -06:00
parent 4cd8038472
commit 02483cf935

View file

@ -40,11 +40,6 @@ func (b *Builder) buildMainInsecureListener(
li.ListenerFilters = append(li.ListenerFilters, ProxyProtocolFilter())
}
// access log
if cfg.Options.DownstreamMTLS.Enforcement == config.MTLSEnforcementRejectConnection {
li.AccessLog = append(li.AccessLog, newListenerAccessLog())
}
filter, err := b.buildMainHTTPConnectionManagerFilter(ctx, cfg, fullyStatic)
if err != nil {
return nil, err