Another case of detecting invalid server IP address.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-03-02 09:08:13 -08:00
parent 69f6149d4c
commit 0857eb27d5

View File

@ -708,6 +708,7 @@ sub handle_nat_rule( $$$$$$$$$$$$ ) {
fatal_error "Invalid or missing server IP address";
} else {
$server = $1 if $family == F_IPV6 && $server =~ /^\[(.+)\]$/;
fatal_error "Invalid server IP address ($server)" if $server eq ALLIP || $server eq NILIP;
my @servers = validate_address $server, 1;
$server = join ',', @servers;
}