mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-14 19:54:06 +01:00
Another case of detecting invalid server IP address.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
69f6149d4c
commit
0857eb27d5
@ -708,6 +708,7 @@ sub handle_nat_rule( $$$$$$$$$$$$ ) {
|
|||||||
fatal_error "Invalid or missing server IP address";
|
fatal_error "Invalid or missing server IP address";
|
||||||
} else {
|
} else {
|
||||||
$server = $1 if $family == F_IPV6 && $server =~ /^\[(.+)\]$/;
|
$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;
|
my @servers = validate_address $server, 1;
|
||||||
$server = join ',', @servers;
|
$server = join ',', @servers;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user