From c5b76bb34c9b76611776f67052e13ebd7afb527e Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Mon, 30 Apr 2018 20:39:42 -0400 Subject: [PATCH] ARTEMIS-1839 NettyConnector was ignoring sniHost This is fixing org.apache.activemq.artemis.tests.integration.ssl.CoreClientOverOneWaySSLKerb5Test#testOneWaySSLWithGoodClientCipherSuite --- .../artemis/core/remoting/impl/netty/NettyConnector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java index c946f9c33a..65a63e5337 100644 --- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java +++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java @@ -625,7 +625,7 @@ public class NettyConnector extends AbstractConnector { @Override public SSLEngine run() { if (verifyHost) { - return context.createSSLEngine(host, port); + return context.createSSLEngine(sniHost != null ? sniHost : host, port); } else { return context.createSSLEngine(); }