mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 03:00:40 +00:00
Set mqtt
-clientId
to uptime-kuma_..
instead of mqttjs_..
(#4503)
This commit is contained in:
commit
ca14c34977
1 changed files with 2 additions and 1 deletions
|
@ -81,7 +81,8 @@ class MqttMonitorType extends MonitorType {
|
||||||
|
|
||||||
let client = mqtt.connect(mqttUrl, {
|
let client = mqtt.connect(mqttUrl, {
|
||||||
username,
|
username,
|
||||||
password
|
password,
|
||||||
|
clientId: "uptime-kuma_" + Math.random().toString(16).substr(2, 8)
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on("connect", () => {
|
client.on("connect", () => {
|
||||||
|
|
Loading…
Reference in a new issue