mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Check agent IP address instead of user IP address for agent file downloads. (#6155)
This commit is contained in:
parent
118b0c58dc
commit
9fd3e4c569
1 changed files with 1 additions and 1 deletions
|
@ -3775,7 +3775,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
|
|
||||||
// Handle download of a server file by an agent
|
// Handle download of a server file by an agent
|
||||||
function handleAgentDownloadFile(req, res) {
|
function handleAgentDownloadFile(req, res) {
|
||||||
const domain = checkUserIpAddress(req, res);
|
const domain = checkAgentIpAddress(req, res);
|
||||||
if (domain == null) { return; }
|
if (domain == null) { return; }
|
||||||
if (req.query.c == null) { res.sendStatus(404); return; }
|
if (req.query.c == null) { res.sendStatus(404); return; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue