Correct earlier faulty patch to Nat.pm.

- Similar Rules.pm patch was okay.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-11-01 19:39:52 -07:00
parent e188bde6c4
commit 41ecee356b
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -289,7 +289,7 @@ sub process_one_masq1( $$$$$$$$$$$$ )
if ( supplied $rest ) {
validate_portpair1( $proto, $rest );
$addrlist .= "--to-source $addr ";
$addrlist .= "--to-source :$rest ";
} else {
$addrlist .= "--to-source $ipaddr";
}
@ -299,7 +299,7 @@ sub process_one_masq1( $$$$$$$$$$$$ )
my $ports = $addr;
$ports =~ s/^://;
validate_portpair1( $proto, $ports );
$addrlist .= "--to-source :$ports ";
$addrlist .= "--to-ports $ports ";
$exceptionrule = do_proto( $proto, '', '' );
}
} else {