mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-26 07:57:56 +03:00
Check agent IP address instead of user IP address for agent file downloads. (#6155)
This commit is contained in:
parent
118b0c58dc
commit
9fd3e4c569
@ -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 New Issue
Block a user