Fixing the condition for embedded cache MTLS encryption

Closes #28750

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
Alexander Schwartz 2024-04-20 11:37:56 +02:00 committed by Alexander Schwartz
parent 9d0b1ecee4
commit 071032a108

View file

@ -179,7 +179,7 @@ public class CacheManagerFactory {
transportConfig.defaultTransport().stack(transportStack);
}
if (Configuration.isTrue(CachingOptions.CACHE_REMOTE_TLS_ENABLED)) {
if (Configuration.isTrue(CachingOptions.CACHE_EMBEDDED_MTLS_ENABLED_PROPERTY)) {
validateTlsAvailable(transportConfig.build());
var tls = new TLS()
.enabled(true)