diff --git a/src/main/java/io/cryostat/agent/MainModule.java b/src/main/java/io/cryostat/agent/MainModule.java index 2d45487f..482886cc 100644 --- a/src/main/java/io/cryostat/agent/MainModule.java +++ b/src/main/java/io/cryostat/agent/MainModule.java @@ -621,7 +621,7 @@ public static HttpClient provideHttpClient( @Named(ConfigModule.CRYOSTAT_AGENT_WEBCLIENT_CONNECT_TIMEOUT_MS) int connectTimeout, @Named(ConfigModule.CRYOSTAT_AGENT_WEBCLIENT_RESPONSE_TIMEOUT_MS) int responseTimeout, @Named(ConfigModule.CRYOSTAT_AGENT_WEBCLIENT_RESPONSE_RETRY_COUNT) int retryCount, - @Named(ConfigModule.CRYOSTAT_AGENT_WEBCLIENT_TLS_REQUIRED) boolean tlsEnabled) { + @Named(ConfigModule.CRYOSTAT_AGENT_WEBCLIENT_TLS_REQUIRED) boolean tlsRequired) { SSLConnectionSocketFactory sslSocketFactory = new SSLConnectionSocketFactory( sslContext, @@ -630,7 +630,7 @@ public static HttpClient provideHttpClient( : NoopHostnameVerifier.INSTANCE); Registry socketFactoryRegistry; - if (tlsEnabled) { + if (tlsRequired) { socketFactoryRegistry = RegistryBuilder.create() .register("https", sslSocketFactory)