applications/luci-olsr: make olsrd status pages ipv6 capable

This commit is contained in:
Jo-Philipp Wich 2008-12-22 02:59:05 +00:00
parent 412fc44071
commit c505596389

View file

@ -182,7 +182,14 @@ function fetch_txtinfo(otable)
local rawdata = luci.sys.httpget("http://127.0.0.1:2006/"..otable) local rawdata = luci.sys.httpget("http://127.0.0.1:2006/"..otable)
if #rawdata == 0 then if #rawdata == 0 then
return nil if luci.fs.access("/proc/net/ipv6_route", "r") then
rawdata = luci.sys.httpget("http://[::1]:2006/"..otable)
if #rawdata == 0 then
return nil
end
else
return nil
end
end end
local data = {} local data = {}