projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trunk: remove bitrot
[project/luci.git]
/
applications
/
luci-coovachilli
/
luasrc
/
model
/
cbi
/
coovachilli_network.lua
diff --git
a/applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua
b/applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua
index
e3351ab
..
2e9768f
100644
(file)
--- a/
applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua
+++ b/
applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua
@@
-28,14
+28,8
@@
s1:option( Value, "txqlen" ).optional = true
net = s1:option( Value, "net" )
for _, route in ipairs(luci.sys.net.routes()) do
net = s1:option( Value, "net" )
for _, route in ipairs(luci.sys.net.routes()) do
- if route.Iface ~= "lo" and route.Mask ~= "FFFFFFFF" then
- local netmask = luci.ip.IPv4(route.Mask)
- if netmask then
- local netaddr = luci.ip.IPv4(route.Destination, netmask)
- if netaddr then
- net:value( netaddr:string() )
- end
- end
+ if route.device ~= "lo" and route.dest:prefix() < 32 then
+ net:value( route.dest:string() )
end
end
end
end