From 6469c58fbfd76a512629481e7343f1b630b9dd38 Mon Sep 17 00:00:00 2001 From: Darryl Quinn Date: Sun, 5 May 2019 17:14:21 -0500 Subject: [PATCH] bugfix: fix index error in aredn_info lib [0] not [1] --- files/usr/lib/lua/aredn/info.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/usr/lib/lua/aredn/info.lua b/files/usr/lib/lua/aredn/info.lua index 6c923749..d5fd85be 100755 --- a/files/usr/lib/lua/aredn/info.lua +++ b/files/usr/lib/lua/aredn/info.lua @@ -67,7 +67,7 @@ end ------------------------------------- function model.getNodeName() css=aredn_uci.getUciConfType("system", "system") - return css[0]['hostname'] + return css[1]['hostname'] end ------------------------------------- @@ -75,7 +75,7 @@ end ------------------------------------- function model.getNodeDescription() css=aredn_uci.getUciConfType("system", "system") - return css[0]['description'] + return css[1]['description'] end -------------------------------------