mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 10:26:02 +03:00
Update server/util-server.js
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
parent
6014ed1156
commit
482b3f9233
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ exports.mqttAsync = function (hostname, topic, okMessage, options = {}) {
|
|||
return new Promise((resolve, reject) => {
|
||||
const { port, username, password, interval = 20 } = options;
|
||||
try {
|
||||
// Adds mqtt protocol to the hostname if not already present
|
||||
// Adds MQTT protocol to the hostname if not already present
|
||||
if (!/^(?:http|mqtt)s?:\/\//.test(hostname)) {
|
||||
hostname = "mqtt://" + hostname;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue