mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-17 02:48:31 -07:00
Change selfsigned to reject_unauthorized
This commit is contained in:
parent
47de3e20ae
commit
fb9600d55d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user