fix(cgi-bin): allow update all pipe pieces

main
Tsu-ba-me 3 years ago
parent 742af987e9
commit c7f63f4a4b
  1. 38
      cgi-bin/manage_vnc_pipes

@ -818,24 +818,28 @@ sub open_vnc_pipe
ssh_tunnel_forward_port => $ssh_tunnel_info->{forward_port} ssh_tunnel_forward_port => $ssh_tunnel_info->{forward_port}
}); });
} }
elsif ($ws_info->{is_update}) else
{
update_vnc_pipe({
server_uuid => $server_uuid,
server_vnc_port => $vnc_info->{port},
ws_host_uuid => $server_info->{host_uuid},
ws_pid => $ws_info->{pid},
ws_source_port => $ws_info->{source_port}
});
}
elsif ($ssh_tunnel_info->{is_update})
{ {
update_vnc_pipe({ if ($ws_info->{is_update})
server_uuid => $server_uuid, {
ssh_tunnel_host_uuid => $host_uuid, update_vnc_pipe({
ssh_tunnel_pid => $ssh_tunnel_info->{pid}, server_uuid => $server_uuid,
ssh_tunnel_forward_port => $ssh_tunnel_info->{forward_port} server_vnc_port => $vnc_info->{port},
}); ws_host_uuid => $server_info->{host_uuid},
ws_pid => $ws_info->{pid},
ws_source_port => $ws_info->{source_port}
});
}
if ($ssh_tunnel_info->{is_update})
{
update_vnc_pipe({
server_uuid => $server_uuid,
ssh_tunnel_host_uuid => $host_uuid,
ssh_tunnel_pid => $ssh_tunnel_info->{pid},
ssh_tunnel_forward_port => $ssh_tunnel_info->{forward_port}
});
}
} }
$vnc_pipe_info = { forward_port => $ssh_tunnel_info->{forward_port} }; $vnc_pipe_info = { forward_port => $ssh_tunnel_info->{forward_port} };

Loading…
Cancel
Save