Handle SNAT 'ADDRESS' without enclosing [...]

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-25 06:42:19 -08:00
parent 34c6013f1b
commit de1a5a8024

View File

@ -262,6 +262,14 @@ sub process_one_masq1( $$$$$$$$$$ )
$exceptionrule = do_proto( $proto, '', '' );
$addrlist .= "--toports $ports ";
}
} else {
if ( $addr =~ /^(.+)-(.+)$/ ) {
validate_range( $1, $2 );
} else {
validate_address $addr, 0;
}
$addrlist .= "--to-source $addr ";
}
}
}