M #: Fix race condition deleting ipset

This commit is contained in:
Christian González authored and Ruben S. Montero committed 2022-01-17 19:01:01 +01:00
1 parent 2e92c43a6a
commit 1bd9a83659
1 file changed
+3
@@ -615,6 +615,9 @@ module SGIPTables
remove_chains_6.each {|c| commands.add :ip6tables, "-F #{c}" }
remove_chains_6.each {|c| commands.add :ip6tables, "-X #{c}" }
# delay to allow kernel to clean up
commands.add 'sleep', '0.1'
ipset_list.lines.each do |line|
if line.match(/^#{chain}(-|$)/)
set = line.strip