diff mod_audit/mod_audit.lua @ 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 4a5837591380
children f3123cbbd894
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