luci-base: luci.sys.iptparser: properly check for table support
authorJo-Philipp Wich <jo@mein.io>
Wed, 21 Dec 2016 17:04:04 +0000 (18:04 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 21 Dec 2016 17:04:24 +0000 (18:04 +0100)
commitb56d1a85e2fa2ba50b2253e07e41b421a2c20fca
tree2631a56f3de81093024f64123113f40e94a87c78
parent70c277e60dcb6fae9769ba5779bf06a1f1f7dfb6
luci-base: luci.sys.iptparser: properly check for table support

Do not assume that the "raw" table is present on any system, instead check
/proc/net/ip{,6}_tables_names to determine which iptables tables are available.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/sys/iptparser.lua