ARTEMIS-2248 don't create sslEngine w/sniHost in NettyConnector
(cherry picked from commit 98ca583313
)
This commit is contained in:
parent
5dfd6f7c1f
commit
3c0c91df8d
|
@ -634,8 +634,8 @@ public class NettyConnector extends AbstractConnector {
|
|||
SSLEngine engine = Subject.doAs(subject, new PrivilegedExceptionAction<SSLEngine>() {
|
||||
@Override
|
||||
public SSLEngine run() {
|
||||
if (verifyHost) {
|
||||
return context.createSSLEngine(sniHost != null ? sniHost : host, port);
|
||||
if (host != null && port != -1) {
|
||||
return context.createSSLEngine(host, port);
|
||||
} else {
|
||||
return context.createSSLEngine();
|
||||
}
|
||||
|
@ -665,8 +665,8 @@ public class NettyConnector extends AbstractConnector {
|
|||
SSLEngine engine = Subject.doAs(subject, new PrivilegedExceptionAction<SSLEngine>() {
|
||||
@Override
|
||||
public SSLEngine run() {
|
||||
if (verifyHost) {
|
||||
return context.newEngine(alloc, sniHost != null ? sniHost : host, port);
|
||||
if (host != null && port != -1) {
|
||||
return context.newEngine(alloc, host, port);
|
||||
} else {
|
||||
return context.newEngine(alloc);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue