mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-23 05:01:34 +01:00
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:
parent
e188bde6c4
commit
41ecee356b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user