From 85edc542fcd1ba863df381b9e2b2f331ad795d81 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Fri, 18 Mar 2022 17:42:20 -0700 Subject: [PATCH] Fix uploading data to AREDN Servers --- files/www/cgi-bin/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index 0e6abd99..5092a689 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -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)