mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-19 01:56:29 +00:00
Change selfsigned to reject_unauthorized
This commit is contained in:
+2
-2
@@ -23,8 +23,8 @@ class MQTT {
|
||||
options.clientId = mqttSettings.client_id;
|
||||
}
|
||||
|
||||
if (mqttSettings.selfsigned) {
|
||||
logger.debug(`Using Self Signed Cert. Ignoring warnings.`);
|
||||
if (mqttSettings.hasOwnProperty('reject_unauthorized') && !mqttSettings.reject_unauthorized) {
|
||||
logger.debug(`MQTT reject_unauthorized set false, ignoring certificate warnings.`);
|
||||
options.rejectUnauthorized = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user