Commit 070cb8e3 authored by frankiejol's avatar frankiejol
Browse files

wip: do not assign public port for bases

parent 3f9bd4e1
...@@ -2799,7 +2799,10 @@ sub _add_expose($self, $internal_port, $name, $restricted) { ...@@ -2799,7 +2799,10 @@ sub _add_expose($self, $internal_port, $name, $restricted) {
my $public_port; my $public_port;
for (;;) { for (;;) {
eval { eval {
$public_port = $self->_vm->_new_free_port(); $public_port = $self->_vm->_new_free_port() if !$self->is_base;
};
die $@ if $@ && $@ !~ /no free ports/i;
eval {
$sth->execute($self->id $sth->execute($self->id
, $public_port, $internal_port , $public_port, $internal_port
, ($name or undef) , ($name or undef)
......
...@@ -153,7 +153,6 @@ ...@@ -153,7 +153,6 @@
</div> </div>
</div> </div>
<hr> <hr>
<div class="row"> <div class="row">
......
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