ARTEMIS-1839 NettyConnector was ignoring sniHost
This is fixing org.apache.activemq.artemis.tests.integration.ssl.CoreClientOverOneWaySSLKerb5Test#testOneWaySSLWithGoodClientCipherSuite
This commit is contained in:
parent
e2e5bdfeca
commit
c5b76bb34c
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue