Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
070cb8e3
Commit
070cb8e3
authored
May 12, 2021
by
frankiejol
Browse files
wip: do not assign public port for bases
parent
3f9bd4e1
Changes
2
Show whitespace changes
Inline
Side-by-side
lib/Ravada/Domain.pm
View file @
070cb8e3
...
...
@@ -2799,7 +2799,10 @@ sub _add_expose($self, $internal_port, $name, $restricted) {
my
$public_port
;
for
(;;)
{
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
,
$public_port
,
$internal_port
,
(
$name
or
undef
)
...
...
templates/main/admin_settings.html.ep
View file @
070cb8e3
...
...
@@ -153,7 +153,6 @@
</div>
</div>
<hr>
<div
class=
"row"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment