mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-08-13 08:12:52 +00:00
followup: indentation and error message improvement
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
542f4c3a03
commit
9789c451a5
@ -809,7 +809,9 @@ sub handle_spice_proxy_request {
|
|||||||
eval {
|
eval {
|
||||||
|
|
||||||
my ($minport, $maxport) = PVE::Tools::spice_port_range();
|
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 $clientip = $reqstate->{peer_host};
|
||||||
my $r = $reqstate->{request};
|
my $r = $reqstate->{request};
|
||||||
|
Loading…
Reference in New Issue
Block a user