mirror of https://github.com/aredn/aredn.git
bugfix: sysinfo.json not returning all services properly
Change-Id: I2b796a9ae03ef979d0776a9c2285354c60fb49f7
This commit is contained in:
parent
d5b06415c2
commit
be514ffb5d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue