luci-mod-status: use -w flag when dumping iptables
Multiple iptables listing commands might be triggered in parallel due to the XHR polling, so use the -w flag to wait for the lock to become free. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
4f2b80e109
commit
be2d0536f4
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ function dump_iptables(family, table)
|
|||
for s in lines do
|
||||
if s == table then
|
||||
local ipt = io.popen(
|
||||
"/usr/sbin/%stables -t %s --line-numbers -nxvL"
|
||||
"/usr/sbin/%stables -w -t %s --line-numbers -nxvL"
|
||||
%{ prefix, table })
|
||||
|
||||
if ipt then
|
||||
|
|
Loading…
Reference in a new issue