mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 08:31:46 +04:00
Merge pull request #393 from nmav/no-group-match
luci-app-ocserv: list users with no group
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user