Changeset 3928

Show
Ignore:
Timestamp:
12/22/08 03:59:05 (21 months ago)
Author:
jow
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/applications/luci-olsr/luasrc/controller/olsr.lua

    r3548 r3928  
    183183 
    184184    if #rawdata == 0 then 
    185         return nil 
     185        if luci.fs.access("/proc/net/ipv6_route", "r") then 
     186            rawdata = luci.sys.httpget("http://[::1]:2006/"..otable) 
     187            if #rawdata == 0 then 
     188                return nil 
     189            end 
     190        else 
     191            return nil 
     192        end 
    186193    end 
    187194