mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-13 05:06:55 +02: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 ) {
|
if ( supplied $rest ) {
|
||||||
validate_portpair1( $proto, $rest );
|
validate_portpair1( $proto, $rest );
|
||||||
$addrlist .= "--to-source $addr ";
|
$addrlist .= "--to-source :$rest ";
|
||||||
} else {
|
} else {
|
||||||
$addrlist .= "--to-source $ipaddr";
|
$addrlist .= "--to-source $ipaddr";
|
||||||
}
|
}
|
||||||
@ -299,7 +299,7 @@ sub process_one_masq1( $$$$$$$$$$$$ )
|
|||||||
my $ports = $addr;
|
my $ports = $addr;
|
||||||
$ports =~ s/^://;
|
$ports =~ s/^://;
|
||||||
validate_portpair1( $proto, $ports );
|
validate_portpair1( $proto, $ports );
|
||||||
$addrlist .= "--to-source :$ports ";
|
$addrlist .= "--to-ports $ports ";
|
||||||
$exceptionrule = do_proto( $proto, '', '' );
|
$exceptionrule = do_proto( $proto, '', '' );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user