summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/controller
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-08-17 15:06:46 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-08-17 15:06:46 +0000
commitdce04bbcb2b2b41898281ed5de0622705bf17b1e (patch)
treeb8428d52f69ac79dc4a7c6ae4fd8cf0741411477 /modules/admin-full/luasrc/controller
parent044b011051086b9cb845e497c0a620cdecd038a6 (diff)
modules/admin-core, modules/admin-full: implement display support for dnsmasq dhcpv6 leases
Diffstat (limited to 'modules/admin-full/luasrc/controller')
-rw-r--r--modules/admin-full/luasrc/controller/admin/network.lua4
1 files changed, 4 insertions, 0 deletions
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)