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");

Check warning on line 149 in modules/transport-netty4/src/main/java/org/opensearch/transport/netty4/ssl/SecureNetty4Transport.java

View check run for this annotation

Codecov / codecov/patch

modules/transport-netty4/src/main/java/org/opensearch/transport/netty4/ssl/SecureNetty4Transport.java#L149

Added line #L149 was not covered by tests
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.