Changeset

5250:d9577083c5f5

mod_audit: Include client id in audit log entries (if known)
author Matthew Wild <mwild1@gmail.com>
date Tue, 14 Mar 2023 17:48:44 +0000
parents 5249:828e5e443613
children 5251:f3123cbbd894
files mod_audit/mod_audit.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_audit/mod_audit.lua	Tue Mar 14 17:13:46 2023 +0000
+++ b/mod_audit/mod_audit.lua	Tue Mar 14 17:48:44 2023 +0000
@@ -38,6 +38,9 @@
 	if session.ip then
 		stanza:text_tag("remote-ip", session.ip);
 	end
+	if session.client_id then
+		stanza:text_tag("client", session.client_id);
+	end
 	return stanza
 end