From dce04bbcb2b2b41898281ed5de0622705bf17b1e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 17 Aug 2012 15:06:46 +0000 Subject: modules/admin-core, modules/admin-full: implement display support for dnsmasq dhcpv6 leases --- modules/admin-full/luasrc/controller/admin/network.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/admin-full/luasrc/controller') diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index 85d7b18dd5..00e1fe2ff1 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -410,7 +410,11 @@ function lease_status() local s = require "luci.tools.status" luci.http.prepare_content("application/json") + luci.http.write('[') luci.http.write_json(s.dhcp_leases()) + luci.http.write(',') + luci.http.write_json(s.dhcp6_leases()) + luci.http.write(']') end function diag_command(cmd) -- cgit v1.2.3