git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
1c10042
)
modules/admin-full: filter IPv6 linklocal IPs in iface overview
author
Jo-Philipp Wich
<redacted>
Wed, 15 Feb 2012 22:49:56 +0000
(22:49 +0000)
committer
Jo-Philipp Wich
<redacted>
Wed, 15 Feb 2012 22:49:56 +0000
(22:49 +0000)
modules/admin-full/luasrc/controller/admin/network.lua
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/controller/admin/network.lua
b/modules/admin-full/luasrc/controller/admin/network.lua
index 5a102668df822a8463cbed87df78f2288bbbc18d..759ad68a284fd60e4e771bfb9d00cce014a352ab 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT