mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-07 08:14:00 +01:00
Merge branch 'idl0r_iptablesw' into 'master'
Improve iptables --wait check See merge request shorewall/code!6
This commit is contained in:
commit
aae5baedfd
@ -5816,9 +5816,10 @@ sub get_capabilities($)
|
||||
fatal_error "Can't find $toolname executable" unless $iptables = which $toolname;
|
||||
}
|
||||
#
|
||||
# Determine if iptables supports the -w option
|
||||
# Determine if iptables supports the -w option unless we already have
|
||||
# existing capabilities
|
||||
#
|
||||
$iptablesw = qt1( "$iptables -w -L -n") ? '-w' : '';
|
||||
$iptablesw = qt1( "$iptables -w -n -L INPUT") ? '-w' : '' unless $_[0];
|
||||
|
||||
my $iptables_restore=$iptables . '-restore';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user