applications/luci-olsr: make olsrd status pages ipv6 capable
This commit is contained in:
parent
412fc44071
commit
c505596389
1 changed files with 8 additions and 1 deletions
|
@ -181,9 +181,16 @@ function fetch_txtinfo(otable)
|
|||
otable = otable or ""
|
||||
local rawdata = luci.sys.httpget("http://127.0.0.1:2006/"..otable)
|
||||
|
||||
if #rawdata == 0 then
|
||||
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
|
||||
|
||||
local data = {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue