applications/luci-olsr: Use 100ms timeout for dns requests via nixio.getnameinfo
This commit is contained in:
parent
6cd01c013a
commit
1c37402e41
1 changed files with 3 additions and 3 deletions
|
@ -134,7 +134,7 @@ function action_neigh(json)
|
||||||
|
|
||||||
for k, v in ipairs(data) do
|
for k, v in ipairs(data) do
|
||||||
if resolve == "1" then
|
if resolve == "1" then
|
||||||
hostname = nixio.getnameinfo(v.remoteIP)
|
hostname = nixio.getnameinfo(v.remoteIP, nil, 100)
|
||||||
if hostname then
|
if hostname then
|
||||||
v.hostname = hostname
|
v.hostname = hostname
|
||||||
end
|
end
|
||||||
|
@ -159,7 +159,7 @@ function action_routes()
|
||||||
|
|
||||||
for k, v in ipairs(data) do
|
for k, v in ipairs(data) do
|
||||||
if resolve == "1" then
|
if resolve == "1" then
|
||||||
local hostname = nixio.getnameinfo(v.gateway)
|
local hostname = nixio.getnameinfo(v.gateway, nil, 100)
|
||||||
if hostname then
|
if hostname then
|
||||||
v.hostname = hostname
|
v.hostname = hostname
|
||||||
end
|
end
|
||||||
|
@ -215,7 +215,7 @@ function action_hna()
|
||||||
|
|
||||||
for k, v in ipairs(data) do
|
for k, v in ipairs(data) do
|
||||||
if resolve == "1" then
|
if resolve == "1" then
|
||||||
hostname = nixio.getnameinfo(v.gateway)
|
hostname = nixio.getnameinfo(v.gateway, nil, 100)
|
||||||
if hostname then
|
if hostname then
|
||||||
v.hostname = hostname
|
v.hostname = hostname
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue