mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-07 02:29:08 +00:00
This closes #2539
This commit is contained in:
commit
3f1a3ceb77
@ -649,8 +649,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();
|
||||
}
|
||||
@ -690,8 +690,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…
x
Reference in New Issue
Block a user