[FEATURE] Auto lowercase hosts

This commit is contained in:
Dunemask 2024-02-12 22:03:14 -07:00
parent f277764cc0
commit 981c22a112
2 changed files with 9 additions and 1 deletions

View file

@ -71,6 +71,9 @@ function payloadFilter(req, res) {
return res
.status(400)
.send("Extra ports must be a list of strings with length of 5!");
if (host !== host.toLowerCase())
WARN("CREATE", "Host automatically being lowercasified...");
req.body.host = host.toLowerCase();
return "filtered";
}