summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2013-03-17 12:21:30 +0000
committerManuel Munz <freifunk@somakoma.de>2013-03-17 12:21:30 +0000
commit1c37402e41f7b0c19d883af8d001f2613c7a0377 (patch)
tree19707e13e31a37682a7770d8e945e99e615a6959 /applications
parent6cd01c013a352d0235160a542ab1e15e0f58e0a7 (diff)
applications/luci-olsr: Use 100ms timeout for dns requests via nixio.getnameinfo
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-olsr/luasrc/controller/olsr.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-olsr/luasrc/controller/olsr.lua b/applications/luci-olsr/luasrc/controller/olsr.lua
index c1b6ed9f4..fd616ab63 100644
--- a/applications/luci-olsr/luasrc/controller/olsr.lua
+++ b/applications/luci-olsr/luasrc/controller/olsr.lua
@@ -134,7 +134,7 @@ function action_neigh(json)
for k, v in ipairs(data) do
if resolve == "1" then
- hostname = nixio.getnameinfo(v.remoteIP)
+ hostname = nixio.getnameinfo(v.remoteIP, nil, 100)
if hostname then
v.hostname = hostname
end
@@ -159,7 +159,7 @@ function action_routes()
for k, v in ipairs(data) do
if resolve == "1" then
- local hostname = nixio.getnameinfo(v.gateway)
+ local hostname = nixio.getnameinfo(v.gateway, nil, 100)
if hostname then
v.hostname = hostname
end
@@ -215,7 +215,7 @@ function action_hna()
for k, v in ipairs(data) do
if resolve == "1" then
- hostname = nixio.getnameinfo(v.gateway)
+ hostname = nixio.getnameinfo(v.gateway, nil, 100)
if hostname then
v.hostname = hostname
end