mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 21:24:01 +00:00
allow to use vmid 0 in spice tickets
VMID 0 will be used by spiceterm for task that run on the host.
This commit is contained in:
parent
409935933e
commit
e1bae24c4c
@ -928,7 +928,7 @@ sub unshift_read_header {
|
|||||||
if ($self->{spiceproxy}) {
|
if ($self->{spiceproxy}) {
|
||||||
my $connect_str = $r->header('Host');
|
my $connect_str = $r->header('Host');
|
||||||
my ($vmid, $node, $port) = PVE::AccessControl::verify_spice_connect_url($connect_str);
|
my ($vmid, $node, $port) = PVE::AccessControl::verify_spice_connect_url($connect_str);
|
||||||
if (!($vmid && $node && $port)) {
|
if (!(defined($vmid) && $node && $port)) {
|
||||||
$self->error($reqstate, HTTP_UNAUTHORIZED, "invalid ticket");
|
$self->error($reqstate, HTTP_UNAUTHORIZED, "invalid ticket");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user