diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-02-12 19:09:36 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-02-12 19:09:36 +0000 |
commit | cc275d166e8bc4c343aa6e3656c91019f7ec9ab7 (patch) | |
tree | 30451062a9ee023a23ec8816012136f92627b539 /applications/luci-radvd | |
parent | 4eb853d2d26e00c0b9403d289eb35b493f4992f7 (diff) |
applications/luci-radvd: use is6linklocal()
Diffstat (limited to 'applications/luci-radvd')
-rw-r--r-- | applications/luci-radvd/luasrc/model/cbi/radvd.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/applications/luci-radvd/luasrc/model/cbi/radvd.lua b/applications/luci-radvd/luasrc/model/cbi/radvd.lua index b59b4e69b..10d087084 100644 --- a/applications/luci-radvd/luasrc/model/cbi/radvd.lua +++ b/applications/luci-radvd/luasrc/model/cbi/radvd.lua @@ -144,9 +144,8 @@ function o.cfgvalue(self, section) local ifc = nm:get_interface(net:ifname()) if ifc then local adr - local lla = luci.ip.IPv6("fe80::/10") for _, adr in ipairs(ifc:ip6addrs()) do - if not lla:contains(adr) then + if not adr:is6linklocal() then v = adr:string() break end @@ -295,9 +294,8 @@ function o.cfgvalue(self, section) local ifc = nm:get_interface(net:ifname()) if ifc then local adr - local lla = luci.ip.IPv6("fe80::/10") for _, adr in ipairs(ifc:ip6addrs()) do - if not lla:contains(adr) then + if not adr:is6linklocal() then v = adr:network(128):string() break end |