mirror of
https://github.com/koush/scrypted.git
synced 2026-05-26 14:40:29 +01:00
mqtt: rejectUnauthorized: false
This commit is contained in:
4
plugins/mqtt/package-lock.json
generated
4
plugins/mqtt/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/mqtt",
|
||||
"version": "0.0.59",
|
||||
"version": "0.0.60",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/mqtt",
|
||||
"version": "0.0.59",
|
||||
"version": "0.0.60",
|
||||
"dependencies": {
|
||||
"@types/node": "^16.6.1",
|
||||
"aedes": "^0.46.1",
|
||||
|
||||
@@ -41,5 +41,5 @@
|
||||
"@scrypted/common": "file:../../common",
|
||||
"@types/nunjucks": "^3.2.0"
|
||||
},
|
||||
"version": "0.0.59"
|
||||
"version": "0.0.60"
|
||||
}
|
||||
|
||||
@@ -57,6 +57,7 @@ export class MqttDeviceBase extends ScriptableDeviceBase implements Settings {
|
||||
urlWithoutPath.pathname = '';
|
||||
|
||||
const client = this.client = connect(urlWithoutPath.toString(), {
|
||||
rejectUnauthorized: false,
|
||||
username: this.storage.getItem('username') || undefined,
|
||||
password: this.storage.getItem('password') || undefined,
|
||||
});
|
||||
|
||||
@@ -257,6 +257,7 @@ class MqttPublisherMixin extends SettingsMixinDeviceBase<any> {
|
||||
urlWithoutPath.pathname = '';
|
||||
|
||||
const client = this.client = connect(urlWithoutPath.toString(), {
|
||||
rejectUnauthorized: false,
|
||||
username,
|
||||
password,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user