Fix the console proxy rdp client build breaking with java 6 and make it part of regular build.

This commit is contained in:
Devdeep Singh 2013-11-11 16:16:34 +05:30
parent fb8c58a3cf
commit 1b2f1d7454
3 changed files with 3 additions and 2 deletions

View File

@ -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();

View File

@ -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();

View File

@ -32,6 +32,7 @@
</build>
<modules>
<module>console-proxy</module>
<module>console-proxy-rdp/rdpconsole</module>
<module>secondary-storage</module>
</modules>
</project>