mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-11-23 12:58:05 +00:00
Change selfsigned to reject_unauthorized
This commit is contained in:
1 parent
47de3e20ae
commit
fb9600d55d
1 file changed
+2
-2
+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