]> git.proxmox.com Git - pve-http-server.git/commitdiff
followup: indentation and error message improvement
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 6 Mar 2020 18:01:40 +0000 (19:01 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 6 Mar 2020 18:01:40 +0000 (19:01 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/APIServer/AnyEvent.pm

index 664afbdcfaba9f423166e85091353e32532b2712..654f8f9b317184698e0bfb41ac166f9afe6ac25c 100644 (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};