Comparison

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
parent 5115:4a5837591380
child 5251:f3123cbbd894
comparison
equal deleted inserted replaced
5249:828e5e443613 5250:d9577083c5f5
35 attr.type = session.type; 35 attr.type = session.type;
36 end 36 end
37 local stanza = st.stanza("session", attr); 37 local stanza = st.stanza("session", attr);
38 if session.ip then 38 if session.ip then
39 stanza:text_tag("remote-ip", session.ip); 39 stanza:text_tag("remote-ip", session.ip);
40 end
41 if session.client_id then
42 stanza:text_tag("client", session.client_id);
40 end 43 end
41 return stanza 44 return stanza
42 end 45 end
43 46
44 local function audit(host, user, source, event_type, extra) 47 local function audit(host, user, source, event_type, extra)