Commit c6533543 authored by Dietmar Maurer's avatar Dietmar Maurer

allow to use vmid 0 in spice tickets

VMID 0 will be used by spiceterm for task that run on the host.
parent 496ec716
......@@ -928,7 +928,7 @@ sub unshift_read_header {
if ($self->{spiceproxy}) {
my $connect_str = $r->header('Host');
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");
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment