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:
parent
f47be40cd4
commit
cf4b89b06b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue