From b466b1fe8af266e6ea38b25671ee7f91b0e8fecc Mon Sep 17 00:00:00 2001 From: "destan19@126.com" Date: Mon, 2 Mar 2020 17:35:50 +0800 Subject: [PATCH] remove debug code --- luci-app-oaf/luasrc/controller/appfilter.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/luci-app-oaf/luasrc/controller/appfilter.lua b/luci-app-oaf/luasrc/controller/appfilter.lua index 6bb4a09..f163d9b 100755 --- a/luci-app-oaf/luasrc/controller/appfilter.lua +++ b/luci-app-oaf/luasrc/controller/appfilter.lua @@ -53,15 +53,8 @@ end function user_status() - local s = require "luci.tools.status" local json = require "luci.jsonc" luci.http.prepare_content("application/json") - tb={} - obj={}; - obj.hostname="derry" - obj.ip="192.168.10.199" - obj.mac="192.168.10.199" - tb[#tb+1]=obj --local fs=require "nixio.fs" --local ok, status_data = pcall(json.parse, fs.readfile("/proc/net/af_client")) --luci.http.write_json(tb);