Showing
1 changed file
with
6 additions
and
0 deletions
@@ -21,6 +21,7 @@ import org.java_websocket.client.WebSocketClient; | @@ -21,6 +21,7 @@ import org.java_websocket.client.WebSocketClient; | ||
21 | import org.java_websocket.handshake.ServerHandshake; | 21 | import org.java_websocket.handshake.ServerHandshake; |
22 | import org.thingsboard.server.msa.mapper.WsTelemetryResponse; | 22 | import org.thingsboard.server.msa.mapper.WsTelemetryResponse; |
23 | 23 | ||
24 | +import javax.net.ssl.SSLParameters; | ||
24 | import java.io.IOException; | 25 | import java.io.IOException; |
25 | import java.net.URI; | 26 | import java.net.URI; |
26 | import java.util.concurrent.CountDownLatch; | 27 | import java.util.concurrent.CountDownLatch; |
@@ -89,4 +90,9 @@ public class WsClient extends WebSocketClient { | @@ -89,4 +90,9 @@ public class WsClient extends WebSocketClient { | ||
89 | throw new RuntimeException(e); | 90 | throw new RuntimeException(e); |
90 | } | 91 | } |
91 | } | 92 | } |
93 | + | ||
94 | + @Override | ||
95 | + protected void onSetSSLParameters(SSLParameters sslParameters) { | ||
96 | + sslParameters.setEndpointIdentificationAlgorithm(null); | ||
97 | + } | ||
92 | } | 98 | } |