Fix detection of PERSISTENT_SNAT

This commit is contained in:
Tom Eastep 2009-09-03 13:56:00 -07:00
parent 62b1dbcd7f
commit 4412a05a70

View File

@ -1951,7 +1951,7 @@ sub determine_capabilities( $ ) {
if ( $capabilities{NAT_ENABLED} ) {
if ( qt1( "$iptables -t nat -N $sillyname" ) ) {
$capabilities{PERSISTENT_SNAT} = qt1( "$iptables -t nat -A $sillyname -j SNAT --to source 1.2.3.4 --persistent" );
$capabilities{PERSISTENT_SNAT} = qt1( "$iptables -t nat -A $sillyname -j SNAT --to-source 1.2.3.4 --persistent" );
qt1( "$iptables -t NAT -F $sillyname" );
qt1( "$iptables -t NAT -X $sillyname" );
}