diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-03-17 12:21:30 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-03-17 12:21:30 +0000 |
commit | 1c37402e41f7b0c19d883af8d001f2613c7a0377 (patch) | |
tree | 19707e13e31a37682a7770d8e945e99e615a6959 /applications/luci-olsr/luasrc/controller | |
parent | 6cd01c013a352d0235160a542ab1e15e0f58e0a7 (diff) |
applications/luci-olsr: Use 100ms timeout for dns requests via nixio.getnameinfo
Diffstat (limited to 'applications/luci-olsr/luasrc/controller')
-rw-r--r-- | applications/luci-olsr/luasrc/controller/olsr.lua | 6 |
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 c1b6ed9f44..fd616ab630 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 |