comparison mod_client_management/mod_client_management.lua @ 5304:717ff9468464

mod_client_management: Include client type in XML response listing
author Matthew Wild <mwild1@gmail.com>
date Wed, 05 Apr 2023 19:39:53 +0100
parents 8ef197cccd74
children 9b9f35aaeb91
comparison
equal deleted inserted replaced
5303:b10a7082b3c3 5304:717ff9468464
314 user_agent:text_tag("uri", client.user_agent.uri); 314 user_agent:text_tag("uri", client.user_agent.uri);
315 end 315 end
316 end 316 end
317 317
318 local connected = client.active and client.active.connected; 318 local connected = client.active and client.active.connected;
319 reply:tag("client", { id = client.id, connected = connected and "true" or "false" }) 319 reply:tag("client", { id = client.id, connected = connected and "true" or "false", type = client.type })
320 :text_tag("first-seen", dt.datetime(client.first_seen)) 320 :text_tag("first-seen", dt.datetime(client.first_seen))
321 :text_tag("last-seen", dt.datetime(client.last_seen)) 321 :text_tag("last-seen", dt.datetime(client.last_seen))
322 :add_child(auth_type) 322 :add_child(auth_type)
323 :add_child(user_agent) 323 :add_child(user_agent)
324 :up(); 324 :up();