Skip to content

Commit

Permalink
Check agent IP address instead of user IP address for agent file down…
Browse files Browse the repository at this point in the history
…loads. (#6155)
  • Loading branch information
nafai authored Jun 28, 2024
1 parent 118b0c5 commit 9fd3e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down

0 comments on commit 9fd3e4c

Please sign in to comment.