From 1c37402e41f7b0c19d883af8d001f2613c7a0377 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sun, 17 Mar 2013 12:21:30 +0000 Subject: applications/luci-olsr: Use 100ms timeout for dns requests via nixio.getnameinfo --- applications/luci-olsr/luasrc/controller/olsr.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'applications/luci-olsr/luasrc/controller') 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 -- cgit v1.2.3