Skip to content

Commit 41b6904

Browse files
committed
Setting HTTPS hostname verification to be on by default when using TLS
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
1 parent 09806fd commit 41b6904

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/MqttConnectOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public class MqttConnectOptions {
6565
private char[] password;
6666
private SocketFactory socketFactory;
6767
private Properties sslClientProps = null;
68-
private boolean httpsHostnameVerificationEnabled = false;
68+
private boolean httpsHostnameVerificationEnabled = true;
6969
private HostnameVerifier sslHostnameVerifier = null;
7070
private boolean cleanSession = CLEAN_SESSION_DEFAULT;
7171
private int connectionTimeout = CONNECTION_TIMEOUT_DEFAULT;

0 commit comments

Comments
 (0)