projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
applications/olsr: Make sure ipv6 addresses from are in the same format when we compa...
[project/luci.git]
/
applications
/
luci-olsr
/
luasrc
/
controller
/
olsr.lua
diff --git
a/applications/luci-olsr/luasrc/controller/olsr.lua
b/applications/luci-olsr/luasrc/controller/olsr.lua
index
0342bde
..
fc44820
100644
(file)
--- 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()
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()
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
if ip6addr == localip then
data[name][di]['Local Device'] = s['.name'] or s.interface
end