From: Jo-Philipp Wich Date: Wed, 15 Feb 2012 22:49:56 +0000 (+0000) Subject: modules/admin-full: filter IPv6 linklocal IPs in iface overview X-Git-Tag: 0.11.0~1085 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c07e6a6976e5636b821c5ccfa650641cef2e6c31;p=oweals%2Fluci.git modules/admin-full: filter IPv6 linklocal IPs in iface overview --- diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index 5a102668d..759ad68a2 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -270,11 +270,13 @@ function iface_status() } end for _, a in ipairs(device:ip6addrs()) do - data.ip6addrs[#data.ip6addrs+1] = { - addr = a:host():string(), - netmask = a:mask():string(), - prefix = a:prefix() - } + if not a:is6linklocal() then + data.ip6addrs[#data.ip6addrs+1] = { + addr = a:host():string(), + netmask = a:mask():string(), + prefix = a:prefix() + } + end end for _, device in ipairs(net:get_interfaces() or {}) do