followup: indentation and error message improvement

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-03-06 19:01:40 +01:00
parent 542f4c3a03
commit 9789c451a5

View File

@ -809,7 +809,9 @@ sub handle_spice_proxy_request {
eval {
my ($minport, $maxport) = PVE::Tools::spice_port_range();
die "Port $spiceport is not allowed" if ($spiceport < $minport || $spiceport > $maxport);
if ($spiceport < $minport || $spiceport > $maxport) {
die "SPICE Port $spiceport is not in allowed range ($minport, $maxport)\n";
}
my $clientip = $reqstate->{peer_host};
my $r = $reqstate->{request};