diff --git a/package/gluon-status-page-api/luasrc/lib/gluon/status-page/www/cgi-bin/interfaces b/package/gluon-status-page-api/luasrc/lib/gluon/status-page/www/cgi-bin/interfaces index 696f3ce6..d4ea74f8 100755 --- a/package/gluon-status-page-api/luasrc/lib/gluon/status-page/www/cgi-bin/interfaces +++ b/package/gluon-status-page-api/luasrc/lib/gluon/status-page/www/cgi-bin/interfaces @@ -15,10 +15,10 @@ list = util.get_mesh_devices(uconn) ubus.close(uconn) interfaces = {} for _,ifname in ipairs(list) do - pcall(function() - local address = util.trim(fs.readfile('/sys/class/net/' .. ifname .. '/address')) - interfaces[ifname] = { address = address } - end) + pcall(function() + local address = util.trim(fs.readfile('/sys/class/net/' .. ifname .. '/address')) + interfaces[ifname] = { address = address } + end) end io.write(json.stringify(interfaces))