mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-05-02 21:30:17 +00:00
increase allowed spiceport range
by using the new spice_port_range sub from PVE::Tools Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
bd8e8612d8
commit
542f4c3a03
@ -808,7 +808,8 @@ sub handle_spice_proxy_request {
|
||||
|
||||
eval {
|
||||
|
||||
die "Port $spiceport is not allowed" if ($spiceport < 61000 || $spiceport > 61099);
|
||||
my ($minport, $maxport) = PVE::Tools::spice_port_range();
|
||||
die "Port $spiceport is not allowed" if ($spiceport < $minport || $spiceport > $maxport);
|
||||
|
||||
my $clientip = $reqstate->{peer_host};
|
||||
my $r = $reqstate->{request};
|
||||
|
Loading…
Reference in New Issue
Block a user