Commit 675bc274 authored by Dietmar Maurer's avatar Dietmar Maurer

spice: ignore the case of the characters in hostname match

parent 93bf03d4
...@@ -514,7 +514,7 @@ sub handle_spice_proxy_request { ...@@ -514,7 +514,7 @@ sub handle_spice_proxy_request {
my $remip; my $remip;
if ($node ne 'localhost' && $node ne PVE::INotify::nodename()) { if ($node ne 'localhost' && PVE::INotify::nodename() !~ m/^$node$/i) {
$remip = PVE::Cluster::remote_node_ip($node); $remip = PVE::Cluster::remote_node_ip($node);
die "unable to get remote IP address for node '$node'\n" if !$remip; die "unable to get remote IP address for node '$node'\n" if !$remip;
print "REMOTE CONNECT $vmid, $remip, $connect_str\n" if $self->{debug}; print "REMOTE CONNECT $vmid, $remip, $connect_str\n" if $self->{debug};
......
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