luci-app-ocserv: list users with no group
This was marked as "(none)" which was not caught by the regex. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
parent
64b728a2df
commit
1c57ea5d22
2 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ function ocserv_status()
|
|||
if not ln then break end
|
||||
|
||||
local id, user, group, vpn_ip, ip, device, time, cipher, status =
|
||||
ln:match("^%s*(%d+)%s+([-_%w]+)%s+([%.%*-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%(%)%:%.-_%w]+)%s+([%:%.-_%w]+).*")
|
||||
ln:match("^%s*(%d+)%s+([-_%w]+)%s+([%(%)%.%*-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%(%)%:%.-_%w]+)%s+([%:%.-_%w]+).*")
|
||||
if id then
|
||||
fwd[#fwd+1] = {
|
||||
id = id,
|
||||
|
|
|
@ -47,7 +47,7 @@ if fd then local ln
|
|||
if not ln then break end
|
||||
|
||||
local id, user, group, vpn_ip, ip, device, time, cipher, status =
|
||||
ln:match("^%s*(%d+)%s+([-_%w]+)%s+([%.%*-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%(%)%:%.-_%w]+)%s+([%:%.-_%w]+).*")
|
||||
ln:match("^%s*(%d+)%s+([-_%w]+)%s+([%(%)%.%*-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%:%.-_%w]+)%s+([%(%)%:%.-_%w]+)%s+([%:%.-_%w]+).*")
|
||||
if id then
|
||||
table.insert(lusers, {id, user, group, vpn_ip, ip, device, time, cipher, status})
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue