mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix no server id in audit log
This commit is contained in:
parent
27678e93ca
commit
e399d57f47
@ -39,7 +39,7 @@ class ApiServersServerStdinHandler(BaseApiHandler):
|
|||||||
self.controller.management.add_to_audit_log(
|
self.controller.management.add_to_audit_log(
|
||||||
auth_data[4]["user_id"],
|
auth_data[4]["user_id"],
|
||||||
f"Sent command ({decoded}) to terminal",
|
f"Sent command ({decoded}) to terminal",
|
||||||
server_id=0,
|
server_id=server_id,
|
||||||
source_ip=self.get_remote_ip(),
|
source_ip=self.get_remote_ip(),
|
||||||
)
|
)
|
||||||
if svr.send_command(self.request.body.decode("utf-8")):
|
if svr.send_command(self.request.body.decode("utf-8")):
|
||||||
|
Loading…
Reference in New Issue
Block a user