Commit 42d2c0c7 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(ports): only search free port in backend

issue #1197
parent ed55ab6b
......@@ -2557,7 +2557,7 @@ sub list_ports($self) {
for my $data (@ports_base) {
next if exists $clone_port{$data->{internal_port}};
unlock_hash(%$data);
$data->{public_port} = $self->_vm->_new_free_port();
$data->{public_port} = $self->_vm->_new_free_port() if $self->_vm;
lock_hash(%$data);
push @list,($data);
}
......
Supports Markdown
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