mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-10-29 23:35:02 -04:00
fix guest sharing file download with userallowedip showing unauthorised #7261
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
97f61b3562
commit
4bff9f1788
@ -3887,7 +3887,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
|
||||
// Handle device file request
|
||||
function handleDeviceFile(req, res) {
|
||||
const domain = checkUserIpAddress(req, res);
|
||||
const domain = getDomain(req, res);
|
||||
if (domain == null) { return; }
|
||||
if ((req.query.c == null) || (req.query.f == null)) { res.sendStatus(404); return; }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user