summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ocserv/luasrc/model/cbi
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2015-08-31 11:20:29 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2015-08-31 11:20:29 +0300
commitc0e2255ae90145062d5966725c7ee5da3c310ce1 (patch)
tree24cfb1bb721da7b733192af33ffc7acff7d343fc /applications/luci-app-ocserv/luasrc/model/cbi
parenta36a73cbdcfb54e1c23453b2541ca74bf36ee79a (diff)
parent1c57ea5d2299c7af7a199eeb63863a5417806781 (diff)
Merge pull request #393 from nmav/no-group-match
luci-app-ocserv: list users with no group
Diffstat (limited to 'applications/luci-app-ocserv/luasrc/model/cbi')
-rw-r--r--applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua b/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua
index c4be1818f2..0fa997c8b3 100644
--- a/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua
+++ b/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua
@@ -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