X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-olsr%2Fluasrc%2Fcontroller%2Folsr.lua;fp=applications%2Fluci-olsr%2Fluasrc%2Fcontroller%2Folsr.lua;h=fc44820dc9df19d564940c33f46b1ddf9582881c;hp=0342bde49b0479a2aaf9c82227cf8374293a2b5e;hb=07c2268d72daae5b7160d3f0ecc1eeeafc86601e;hpb=cb178921dad84ef91f17f25f68f73ce2fb95e055 diff --git a/applications/luci-olsr/luasrc/controller/olsr.lua b/applications/luci-olsr/luasrc/controller/olsr.lua index 0342bde49..fc44820dc 100644 --- a/applications/luci-olsr/luasrc/controller/olsr.lua +++ b/applications/luci-olsr/luasrc/controller/olsr.lua @@ -334,9 +334,10 @@ function fetch_txtinfo(otable) uci:foreach("network", "interface", function(s) local localip = string.gsub(fields[k], ' ', ''):upper() + localip = luci.ip.IPv6(localip):string() if s.ip6addr then s.ip6addr = luci.ip.IPv6(s.ip6addr):string() - local ip6addr = string.gsub(s.ip6addr, '\/.*', '') + local ip6addr = string.gsub(s.ip6addr, '\/.*', ''):upper() if ip6addr == localip then data[name][di]['Local Device'] = s['.name'] or s.interface end