1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Update luci-base and luci-mod-admin-full to latest version, disable nginx default script

This commit is contained in:
Ycarus 2018-03-15 15:27:42 +01:00
parent 7ba8d8d610
commit 139393bc8f
65 changed files with 7053 additions and 5523 deletions

View file

@ -139,14 +139,12 @@ function action_connections()
end
function action_nameinfo(...)
local i
local rv = { }
for i = 1, select('#', ...) do
local addr = select(i, ...)
local fqdn = nixio.getnameinfo(addr)
rv[addr] = fqdn or (addr:match(":") and "[%s]" % addr or addr)
end
local util = require "luci.util"
luci.http.prepare_content("application/json")
luci.http.write_json(rv)
luci.http.write_json(util.ubus("network.rrdns", "lookup", {
addrs = { ... },
timeout = 5000,
limit = 1000
}) or { })
end