Merge pull request #299 from nmav/ocserv-match
luci-app-ocserv: modified match to apply to newer versions of occtl
This commit is contained in:
commit
0d541a4cbd
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