diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-02-12 19:10:17 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-02-12 19:10:17 +0000 |
commit | 094e2c8c815fe2eea83b9ab99ec3a63e753994fb (patch) | |
tree | 995ec464dee3db7d4fc1748db2dd0e83b229bb70 /libs/core | |
parent | cc275d166e8bc4c343aa6e3656c91019f7ec9ab7 (diff) |
libs/core: use is6linklocal()
Diffstat (limited to 'libs/core')
-rw-r--r-- | libs/core/luasrc/model/network.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua index 07bae9a8a..911d2a7fc 100644 --- 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 |