Correct handling of address variables in DNAT rule.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-08-13 08:30:11 -07:00
parent 2beeedd8fe
commit ddefde2d10
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -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;
}