Skip to content

Commit

Permalink
Add log message about dual mode enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Oct 22, 2024
1 parent f6c3b4c commit b524957
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ protected void initChannel(Channel ch) throws Exception {
.map(SecureTransportSettingsProvider.SecureTransportParameters::dualModeEnabled)
.orElse(false);
if (dualModeEnabled) {
logger.info("SSL Dual mode enabled, using port unification handler");
final ChannelHandler portUnificationHandler = new DualModeSslHandler(
settings,
secureTransportSettingsProvider,
Expand Down Expand Up @@ -267,7 +268,6 @@ public SSLClientChannelInitializer(DiscoveryNode node) {

connectionTestResult = SSLConnectionTestResult.SSL_AVAILABLE;
if (dualModeEnabled) {
logger.info("SSL Dual mode enabled, using port unification handler");
SecureConnectionTestUtil sslConnectionTestUtil = new SecureConnectionTestUtil(
node.getAddress().getAddress(),
node.getAddress().getPort()
Expand Down

0 comments on commit b524957

Please sign in to comment.