applications/olsr: Device was not properly shown for ipv6 adresses which used the short form, this should take care of that issue
This commit is contained in:
parent
b3e5467ec6
commit
af094a27e2
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue