bugfix: sysinfo.json not returning all services properly

Change-Id: I2b796a9ae03ef979d0776a9c2285354c60fb49f7
This commit is contained in:
Darryl Quinn 2017-08-03 15:02:32 -05:00 committed by K5DLQ
parent d5b06415c2
commit be514ffb5d
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ if string.find(nixio.getenv("QUERY_STRING"):lower(),"services=1") then
hfile:close()
for pos,val in pairs(lines) do
local service={}
local link,protocol,name = string.match(val,"^(.*)|(.+)|(.*)\t+%s+.*")
local link,protocol,name = string.match(val,"^([^|]*)|(.+)|([^\t]*)\t#.*")
if link and protocol and name then
service['link']=link
service['protocol']=protocol