Fix range-in-masq patch

This commit is contained in:
Tom Eastep 2009-10-01 08:16:22 -07:00
parent 5e49be219b
commit 327e170be5

View File

@ -239,7 +239,7 @@ sub process_one_masq( )
if ( $addr =~ /^.*\..*\..*\./ ) {
$target = '-j SNAT ';
my ($ipaddr, $rest) = split ':', $addr;
if ( $addr =~ /^(.+)-(.+)$/ ) {
if ( $ipaddr =~ /^(.+)-(.+)$/ ) {
validate_range( $1, $2 );
} else {
validate_address $ipaddr, 0;