Fix the prior commit

This commit is contained in:
Tom Eastep 2011-04-13 17:56:15 -07:00
parent 9a8f411531
commit 96af7bfed6

View File

@ -207,8 +207,9 @@ sub process_one_masq( )
} else { } else {
my $ports = $addr; my $ports = $addr;
$ports =~ s/^://; $ports =~ s/^://;
$ports =~ s/-/:/; my $portrange = $ports;
validate_portpair( $proto, $ports ); $portrange =~ s/-/:/;
validate_portpair( $proto, $portrange );
$addrlist .= "--to-ports $ports "; $addrlist .= "--to-ports $ports ";
$exceptionrule = do_proto( $proto, '', '' ); $exceptionrule = do_proto( $proto, '', '' );
} }