diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-12-22 02:59:05 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-12-22 02:59:05 +0000 |
commit | c505596389ce37f2713a5f203abc0b73a5b336c7 (patch) | |
tree | 5a7f44c3850b007587241b1f7766770eb47761dc /applications | |
parent | 412fc440717037fe19f3c6b4d9a179659132382c (diff) |
applications/luci-olsr: make olsrd status pages ipv6 capable
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-olsr/luasrc/controller/olsr.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/applications/luci-olsr/luasrc/controller/olsr.lua b/applications/luci-olsr/luasrc/controller/olsr.lua index 97e5061b9..766107ee9 100644 --- a/applications/luci-olsr/luasrc/controller/olsr.lua +++ b/applications/luci-olsr/luasrc/controller/olsr.lua @@ -182,7 +182,14 @@ function fetch_txtinfo(otable) local rawdata = luci.sys.httpget("http://127.0.0.1:2006/"..otable) 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 local data = {} |