Skip to content

Commit e1a8b5c

Browse files
committed
Add forgotten WebSocketSecureNetworkModule changes
Signed-off-by: James Tomson <[email protected]>
1 parent f6681ea commit e1a8b5c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/websocket/WebSocketSecureNetworkModule.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.util.Properties;
2525
import javax.net.ssl.SSLSocketFactory;
2626

27+
import org.eclipse.paho.client.mqttv3.IMqttDns;
2728
import org.eclipse.paho.client.mqttv3.MqttException;
2829
import org.eclipse.paho.client.mqttv3.internal.SSLNetworkModule;
2930
import org.eclipse.paho.client.mqttv3.logging.Logger;
@@ -49,8 +50,8 @@ public class WebSocketSecureNetworkModule extends SSLNetworkModule{
4950
*/
5051
private ByteArrayOutputStream outputStream = new ExtendedByteArrayOutputStream(this);
5152

52-
public WebSocketSecureNetworkModule(SSLSocketFactory factory, String uri, String host, int port, String clientId, Properties customWebSocketHeaders) {
53-
super(factory, host, port, clientId);
53+
public WebSocketSecureNetworkModule(SSLSocketFactory factory, String uri, String host, int port, String clientId, IMqttDns dns, Properties customWebSocketHeaders) {
54+
super(factory, host, port, clientId, dns);
5455
this.uri = uri;
5556
this.host = host;
5657
this.port = port;

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/websocket/WebSocketSecureNetworkModuleFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public NetworkModule createNetworkModule(URI brokerUri, MqttConnectOptions optio
6464

6565
// Create the network module...
6666
WebSocketSecureNetworkModule netModule = new WebSocketSecureNetworkModule((SSLSocketFactory) factory,
67-
brokerUri.toString(), host, port, clientId, options.getCustomWebSocketHeaders());
67+
brokerUri.toString(), host, port, clientId, options.getDns(), options.getCustomWebSocketHeaders());
6868
netModule.setSSLhandshakeTimeout(options.getConnectionTimeout());
6969
netModule.setSSLHostnameVerifier(options.getSSLHostnameVerifier());
7070
netModule.setHttpsHostnameVerificationEnabled(options.isHttpsHostnameVerificationEnabled());

0 commit comments

Comments
 (0)