Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
8d18f69f
Commit
8d18f69f
authored
Feb 22, 2018
by
Francesc Guasch
Committed by
Francesc Guasch
Feb 26, 2018
Browse files
[#564] return the nat_ip from main config
parent
b75468c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
8d18f69f
...
...
@@ -841,12 +841,20 @@ Returns the default display IP read from the config file
=cut
sub
display_ip
{
my
$ip
=
$CONFIG
->
{
display_ip
};
return
$ip
if
$ip
;
}
=head2 nat_ip
Returns the IP for NATed environments
=cut
sub
nat_ip
{
return
$CONFIG
->
{
nat_ip
}
if
exists
$CONFIG
->
{
nat_ip
};
}
sub
_init_config
{
my
$file
=
shift
or
confess
"
ERROR: Missing config file
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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