Skip to content

Commit 61386f4

Browse files
committed
Fix the console proxy rdp client build breaking with java 6 and make it part of regular build.
1 parent 6a8ec78 commit 61386f4

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎services/console-proxy-rdp/rdpconsole/src/main/java/streamer/SocketWrapper.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void upgradeToSsl() {
133133
sslContext.init(null, new TrustManager[] { new TrustAllX509TrustManager() }, null);
134134

135135
SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
136-
sslSocket = (SSLSocket) sslSocketFactory.createSocket(socket, address.getHostString(), address.getPort(), true);
136+
sslSocket = (SSLSocket) sslSocketFactory.createSocket(socket, address.getHostName(), address.getPort(), true);
137137
sslSocket.startHandshake();
138138

139139
InputStream sis = sslSocket.getInputStream();

‎services/console-proxy-rdp/rdpconsole/src/test/java/rdpclient/MockServerTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public void testIsMockServerCanUpgradeConnectionToSsl() throws Exception {
154154
//System.setProperty("javax.net.debug", "ssl");
155155

156156
final SSLSocketFactory sslSocketFactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
157-
SSLSocket sslSocket = (SSLSocket) sslSocketFactory.createSocket(socket, address.getHostString(), address.getPort(), true);
157+
SSLSocket sslSocket = (SSLSocket) sslSocketFactory.createSocket(socket, address.getHostName(), address.getPort(), true);
158158
sslSocket.setEnabledCipherSuites(sslSocket.getSupportedCipherSuites());
159159
sslSocket.startHandshake();
160160

‎services/pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
</build>
3333
<modules>
3434
<module>console-proxy</module>
35+
<module>console-proxy-rdp/rdpconsole</module>
3536
<module>secondary-storage</module>
3637
</modules>
3738
</project>

0 commit comments

Comments
 (0)