mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-23 11:02:12 +00:00
migrate: read mtunnel version
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
d851846929
commit
58cbe63901
@ -143,6 +143,16 @@ sub fork_tunnel {
|
|||||||
};
|
};
|
||||||
my $err = $@;
|
my $err = $@;
|
||||||
|
|
||||||
|
eval {
|
||||||
|
my $ver = $self->read_tunnel($tunnel, 10);
|
||||||
|
if ($ver =~ /^ver (\d+)$/) {
|
||||||
|
$tunnel->{version} = $1;
|
||||||
|
$self->log('info', "ssh tunnel $ver\n");
|
||||||
|
} else {
|
||||||
|
$err = "received invalid tunnel version string '$ver'\n" if !$err;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
if ($err) {
|
if ($err) {
|
||||||
$self->finish_command_pipe($tunnel);
|
$self->finish_command_pipe($tunnel);
|
||||||
die "can't open migration tunnel - $err";
|
die "can't open migration tunnel - $err";
|
||||||
|
Loading…
Reference in New Issue
Block a user