From 9fd3e4c569ea773e5ce7422405bb2783910565c1 Mon Sep 17 00:00:00 2001 From: Joel Roth Date: Fri, 28 Jun 2024 09:50:57 -0400 Subject: [PATCH] Check agent IP address instead of user IP address for agent file downloads. (#6155) --- webserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver.js b/webserver.js index a65e3b41ba..36d5c711da 100644 --- a/webserver.js +++ b/webserver.js @@ -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; }