diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-28 19:05:42 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-28 19:07:36 +0100 |
commit | cf4b89b06be6d6191965e18517a39f870aa5e729 (patch) | |
tree | 70249fda3f3cd90001997de79d5361555b163da6 /applications/luci-app-upnp/luasrc/controller | |
parent | f47be40cd4e326699a3706aec20f89f1549e1439 (diff) |
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>
Diffstat (limited to 'applications/luci-app-upnp/luasrc/controller')
-rw-r--r-- | applications/luci-app-upnp/luasrc/controller/upnp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-upnp/luasrc/controller/upnp.lua b/applications/luci-app-upnp/luasrc/controller/upnp.lua index 8fc697fd6a..790bf29d8c 100644 --- a/applications/luci-app-upnp/luasrc/controller/upnp.lua +++ b/applications/luci-app-upnp/luasrc/controller/upnp.lua @@ -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 |