Commit 9a3fa095 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(ports): change public port when copying from base

issue #1197
parent 917ed998
......@@ -2539,7 +2539,11 @@ sub list_ports($self) {
my $base = Ravada::Front::Domain->open($self->id_base);
my @ports_base = $base->list_ports();
for my $data (@ports_base) {
push @list,($data) if !exists $clone_port{$data->{internal_port}};
next if exists $clone_port{$data->{internal_port}};
$data->{public_port} = $self->_vm->_new_free_port();
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