[nikohomecontrol] Switch off hostname validation. (#10652)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
This commit is contained in:
@@ -158,7 +158,7 @@ public class NhcMqttConnection2 implements MqttActionCallback {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private MqttBrokerConnection createMqttConnection() throws MqttException {
|
private MqttBrokerConnection createMqttConnection() throws MqttException {
|
||||||
MqttBrokerConnection connection = new MqttBrokerConnection(cocoAddress, port, true, clientId);
|
MqttBrokerConnection connection = new MqttBrokerConnection(cocoAddress, port, true, false, clientId);
|
||||||
connection.setTrustManagers(trustManagers);
|
connection.setTrustManagers(trustManagers);
|
||||||
connection.setCredentials(profile, token);
|
connection.setCredentials(profile, token);
|
||||||
connection.setQos(1);
|
connection.setQos(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user