mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 07:33:43 +01:00
Correct handling of address variables in DNAT rule.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
2beeedd8fe
commit
ddefde2d10
@ -945,7 +945,9 @@ sub handle_nat_rule( $$$$$$$$$$$$$ ) {
|
||||
my @servers;
|
||||
|
||||
if ( ( $server =~ /^([&%])(.+)/ ) ) {
|
||||
@servers = ( record_runtime_address( $1, $2 ) );
|
||||
$server = record_runtime_address( $1, $2 );
|
||||
$server =~ s/ $//;
|
||||
@servers = ( $server );
|
||||
} else {
|
||||
@servers = validate_address $server, 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user