Permalink
Browse files

applications/olsr: Device was not properly shown for ipv6 adresses wh…

…ich used the short form, this should take care of that issue

git-svn-id: http://svn.luci.subsignal.org/luci/trunk@8684 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
  • Loading branch information...
soma
soma committed May 28, 2012
1 parent 6a18de5 commit 2f2cbe8dc8f599e341126a98334ab6115ac3ca45
Showing with 2 additions and 1 deletion.
  1. +2 −1 applications/luci-olsr/luasrc/controller/olsr.lua
@@ -336,8 +336,9 @@ function fetch_txtinfo(otable)
data[name][di]['Local Device'] = fields[k]
uci:foreach("network", "interface",
function(s)
- local localip = string.gsub(fields[k], ' ', '')
+ local localip = string.gsub(fields[k], ' ', ''):upper()
if s.ip6addr then
+ s.ip6addr = luci.ip.IPv6(s.ip6addr):string()
local ip6addr = string.gsub(s.ip6addr, '\/.*', '')
if ip6addr == localip then
data[name][di]['Local Device'] = s['.name'] or s.interface

0 comments on commit 2f2cbe8

Please sign in to comment.