summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-12-23 21:57:34 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-12-23 21:57:34 +0000
commit889d3a4111c9a5f501602b6387ce273e40e2b9db (patch)
tree57d79dcfbe9d6e5e0d207503d22a26d9b74c0c39 /applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua
parent4adce96bdae92930fd79f90d81a93982bf9b5242 (diff)
trunk: remove bitrot
Diffstat (limited to 'applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua')
-rw-r--r--applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua b/applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua
index e3351ab00..2e9768ff3 100644
--- 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
- 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