diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-15 22:49:56 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-15 22:49:56 +0000 |
commit | c07e6a6976e5636b821c5ccfa650641cef2e6c31 (patch) | |
tree | a74d96e31067c9be629e4dd0e27863d2d0ba1487 /modules | |
parent | 1c10042f8c0cd55bcc90a98f1f62b31974179d4e (diff) |
modules/admin-full: filter IPv6 linklocal IPs in iface overview
Diffstat (limited to 'modules')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/network.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index 5a102668df..759ad68a28 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 |