Skip to content

Commit

Permalink
Add log message if SSL dual mode is enabled (#16437)
Browse files Browse the repository at this point in the history
* Add log message about dual mode enabled

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add log message about dual mode enabled

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
(cherry picked from commit 8eccbb5)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Oct 23, 2024
1 parent b771f78 commit 27eb977
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit 27eb977

Please sign in to comment.