luci-app-upnp: supress stderr when listing MINIUPNPD chain

Current OpenWrt trunk now relays uhttpd stderr to syslog, so don't spam
it with "iptables: No chain/target/match by that name." when miniupnpd
is not configured but its status is queried by an overview page applet.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2015-02-28 19:05:42 +01:00
parent f47be40cd4
commit cf4b89b06b

View file

@ -19,7 +19,7 @@ function index()
end
function act_status()
local ipt = io.popen("iptables --line-numbers -t nat -xnvL MINIUPNPD")
local ipt = io.popen("iptables --line-numbers -t nat -xnvL MINIUPNPD 2>/dev/null")
if ipt then
local fwd = { }
while true do