You've already forked uptime-kuma
mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-13 01:40:29 +02:00
Added changes to stop auth attempts after an error
This commit is contained in:
@ -413,12 +413,14 @@ exports.radius = function (
|
||||
exports.redisPingAsync = function (dsn) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const client = redis.createClient({
|
||||
url: dsn,
|
||||
url: dsn
|
||||
});
|
||||
client.on("error", (err) => {
|
||||
client.disconnect();
|
||||
reject(err);
|
||||
});
|
||||
client.connect().then(() => {
|
||||
if(client.isOpen){
|
||||
client.ping().then((res, err) => {
|
||||
if (client.isOpen) {
|
||||
client.disconnect();
|
||||
@ -429,6 +431,7 @@ exports.redisPingAsync = function (dsn) {
|
||||
resolve(res);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user