projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc275d1
)
libs/core: use is6linklocal()
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 12 Feb 2011 19:10:17 +0000
(19:10 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 12 Feb 2011 19:10:17 +0000
(19:10 +0000)
libs/core/luasrc/model/network.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/model/network.lua
b/libs/core/luasrc/model/network.lua
index 07bae9a8ae54fc94903d8770a03a129f39ee82dc..911d2a7fc5ccf13a70bcdacc4d5e1fd44f40ecdb 100644
(file)
--- a/
libs/core/luasrc/model/network.lua
+++ b/
libs/core/luasrc/model/network.lua
@@
-605,11
+605,10
@@
function network.ip6addr(self)
local ip6 = self:_ip("ip6addr", 6)
if not ip6 then
local ifc = ifs[self:ifname()]
- local llr = ipc.IPv6("fe80::/10")
if ifc and ifc.ip6addrs then
local a
for _, a in ipairs(ifc.ip6addrs) do
- if not
llr:contains(a
) then
+ if not
a:is6linklocal(
) then
ip6 = a:string()
break
end