mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-21 22:19:07 -04:00
requires empty username/password if set disableAuth for basic auth
This commit is contained in:
parent
6f868c9ec3
commit
44c8ca9da8
2 changed files with 17 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
const tcpp = require("tcp-ping");
|
||||
const Ping = require("./ping-lite");
|
||||
const { R } = require("redbean-node");
|
||||
const { debug } = require("../src/util");
|
||||
|
||||
exports.tcping = function (hostname, port) {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
@ -45,7 +46,9 @@ exports.setting = async function (key) {
|
|||
]);
|
||||
|
||||
try {
|
||||
return JSON.parse(value);
|
||||
const v = JSON.parse(value);
|
||||
debug(`Get Setting: ${key}: ${v}`)
|
||||
return v;
|
||||
} catch (e) {
|
||||
return value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue