mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix the console proxy rdp client build breaking with java 6 and make it part of regular build.
This commit is contained in:
parent
fb8c58a3cf
commit
1b2f1d7454
@ -133,7 +133,7 @@ public class SocketWrapper extends PipelineImpl {
|
||||
sslContext.init(null, new TrustManager[] { new TrustAllX509TrustManager() }, null);
|
||||
|
||||
SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
|
||||
sslSocket = (SSLSocket) sslSocketFactory.createSocket(socket, address.getHostString(), address.getPort(), true);
|
||||
sslSocket = (SSLSocket) sslSocketFactory.createSocket(socket, address.getHostName(), address.getPort(), true);
|
||||
sslSocket.startHandshake();
|
||||
|
||||
InputStream sis = sslSocket.getInputStream();
|
||||
|
||||
@ -154,7 +154,7 @@ public class MockServerTest extends TestCase {
|
||||
//System.setProperty("javax.net.debug", "ssl");
|
||||
|
||||
final SSLSocketFactory sslSocketFactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
|
||||
SSLSocket sslSocket = (SSLSocket) sslSocketFactory.createSocket(socket, address.getHostString(), address.getPort(), true);
|
||||
SSLSocket sslSocket = (SSLSocket) sslSocketFactory.createSocket(socket, address.getHostName(), address.getPort(), true);
|
||||
sslSocket.setEnabledCipherSuites(sslSocket.getSupportedCipherSuites());
|
||||
sslSocket.startHandshake();
|
||||
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
</build>
|
||||
<modules>
|
||||
<module>console-proxy</module>
|
||||
<module>console-proxy-rdp/rdpconsole</module>
|
||||
<module>secondary-storage</module>
|
||||
</modules>
|
||||
</project>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user