mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 21:02:53 -05:00
Check agent IP address instead of user IP address for agent file downloads. (#6155)
This commit is contained in:
@@ -3775,7 +3775,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
|
||||
// Handle download of a server file by an agent
|
||||
function handleAgentDownloadFile(req, res) {
|
||||
const domain = checkUserIpAddress(req, res);
|
||||
const domain = checkAgentIpAddress(req, res);
|
||||
if (domain == null) { return; }
|
||||
if (req.query.c == null) { res.sendStatus(404); return; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user