projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3e5467
)
applications/olsr: Device was not properly shown for ipv6 adresses which used the...
author
Manuel Munz
<
[email protected]
>
Mon, 28 May 2012 01:31:44 +0000
(
01:31
+0000)
committer
Manuel Munz
<
[email protected]
>
Mon, 28 May 2012 01:31:44 +0000
(
01:31
+0000)
applications/luci-olsr/luasrc/controller/olsr.lua
patch
|
blob
|
history
diff --git
a/applications/luci-olsr/luasrc/controller/olsr.lua
b/applications/luci-olsr/luasrc/controller/olsr.lua
index a47496b31a9a5c15fd7ec3decad8801fb5489699..371bad870735e69b36ffe8e7add43b2b20b77f85 100644
(file)
--- a/
applications/luci-olsr/luasrc/controller/olsr.lua
+++ b/
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