mirror of https://github.com/aredn/aredn.git
Fix uploading data to AREDN Servers
This commit is contained in:
parent
321e58bd37
commit
85edc542fc
|
@ -265,10 +265,10 @@ end
|
|||
if parms.button_uploaddata then
|
||||
local si = capture("curl 'http://localnode:8080/cgi-bin/sysinfo.json?hosts=1' 2>/dev/null"):chomp()
|
||||
-- strip closing }
|
||||
si = si.sub(1, #si - 1)
|
||||
si = si:sub(1, #si - 1)
|
||||
|
||||
-- get olsrd topo information
|
||||
local topo = capture("url 'http://localnode:9090/links' 2>/dev/null"):chomp()
|
||||
local topo = capture("curl 'http://localnode:9090/links' 2>/dev/null"):chomp()
|
||||
|
||||
-- add topo subdoc and close root doc
|
||||
local newsi = string.format("%s,\"olsr\": %s}", si, topo)
|
||||
|
|
Loading…
Reference in New Issue