mirror of https://github.com/apache/activemq.git
[AMQ-8445] Fix SSLParameters set in the SSL transport
This commit is contained in:
parent
05426d637c
commit
c2e2c818b5
|
@ -129,7 +129,11 @@ public class SslTransport extends TcpTransport {
|
||||||
sslParams.setEndpointIdentificationAlgorithm("HTTPS");
|
sslParams.setEndpointIdentificationAlgorithm("HTTPS");
|
||||||
}
|
}
|
||||||
|
|
||||||
((SSLSocket)this.socket).setSSLParameters(sslParams);
|
if (remoteLocation != null || verifyHostName) {
|
||||||
|
// AMQ-8445 only set SSLParameters if it has been populated before
|
||||||
|
((SSLSocket) this.socket).setSSLParameters(sslParams);
|
||||||
|
}
|
||||||
|
|
||||||
super.initialiseSocket(sock);
|
super.initialiseSocket(sock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue