comparison mod_client_management/mod_client_management.lua @ 5593:6d0574bfbf5d

mod_client_management: Include software version in table (when known) Showing software versions could be useful for statistical reasons, e.g. determining how quickly (or not) users upgrade, but most importantly for revoking vulnerable clients versions in case of a security issue.
author Kim Alvefur <zash@zash.se>
date Thu, 13 Jul 2023 23:26:02 +0200
parents b43ff0302204
children e9af6abf2b1e
comparison
equal deleted inserted replaced
5592:b43ff0302204 5593:6d0574bfbf5d
424 { 424 {
425 title = "Software"; 425 title = "Software";
426 key = "user_agent"; 426 key = "user_agent";
427 width = "1p"; 427 width = "1p";
428 mapper = function(user_agent) 428 mapper = function(user_agent)
429 return user_agent and user_agent.software; 429 if user_agent and user_agent.software then
430 if user_agent.software_version then
431 return user_agent.software .. "/" .. user_agent.software_version;
432 else
433 return user_agent.software;
434 end
435 end
430 end; 436 end;
431 }; 437 };
432 { 438 {
433 title = "Last seen"; 439 title = "Last seen";
434 key = "last_seen"; 440 key = "last_seen";