Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 2f2cbe8dc8f599e341126a98334ab6115ac3ca45 1 parent 6a18de5
authored May 28, 2012
3  applications/luci-olsr/luasrc/controller/olsr.lua
@@ -336,8 +336,9 @@ function fetch_txtinfo(otable)
336 336
 						data[name][di]['Local Device'] = fields[k]
337 337
 						uci:foreach("network", "interface",
338 338
 						function(s)
339  
-							local localip = string.gsub(fields[k], '	', '')
  339
+							local localip = string.gsub(fields[k], '	', ''):upper()
340 340
 							if s.ip6addr then
  341
+								s.ip6addr = luci.ip.IPv6(s.ip6addr):string()
341 342
 								local ip6addr = string.gsub(s.ip6addr, '\/.*', '')
342 343
 								if ip6addr == localip then
343 344
 									data[name][di]['Local Device'] = s['.name'] or s.interface

0 notes on commit 2f2cbe8

Please sign in to comment.
Something went wrong with that request. Please try again.