mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-18 17:55:24 -04:00
Bad login fix, #3268
This commit is contained in:
parent
529fa04094
commit
e7f51c7658
@ -7752,7 +7752,6 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
|||||||
} else if (Array.isArray(parent.config.settings.maxinvalidlogin.exclude)) {
|
} else if (Array.isArray(parent.config.settings.maxinvalidlogin.exclude)) {
|
||||||
for (var i in parent.config.settings.maxinvalidlogin.exclude) { if (require('ipcheck').match(ip, parent.config.settings.maxinvalidlogin.exclude[i])) return; }
|
for (var i in parent.config.settings.maxinvalidlogin.exclude) { if (require('ipcheck').match(ip, parent.config.settings.maxinvalidlogin.exclude[i])) return; }
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
var splitip = ip.split('.');
|
var splitip = ip.split('.');
|
||||||
if (splitip.length == 4) { ip = (splitip[0] + '.' + splitip[1] + '.' + splitip[2] + '.*'); }
|
if (splitip.length == 4) { ip = (splitip[0] + '.' + splitip[1] + '.' + splitip[2] + '.*'); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user