From e399d57f475507a52c9a28fe85a85e571ea4d1d7 Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Sun, 28 Jan 2024 16:20:08 -0500 Subject: [PATCH] Fix no server id in audit log --- app/classes/web/routes/api/servers/server/stdin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/classes/web/routes/api/servers/server/stdin.py b/app/classes/web/routes/api/servers/server/stdin.py index 117fe188..ba8400b7 100644 --- a/app/classes/web/routes/api/servers/server/stdin.py +++ b/app/classes/web/routes/api/servers/server/stdin.py @@ -39,7 +39,7 @@ class ApiServersServerStdinHandler(BaseApiHandler): self.controller.management.add_to_audit_log( auth_data[4]["user_id"], f"Sent command ({decoded}) to terminal", - server_id=0, + server_id=server_id, source_ip=self.get_remote_ip(), ) if svr.send_command(self.request.body.decode("utf-8")):