Commit 8d18f69f authored by Francesc Guasch's avatar Francesc Guasch Committed by Francesc Guasch
Browse files

[#564] return the nat_ip from main config

parent b75468c2
......@@ -841,12 +841,20 @@ Returns the default display IP read from the config file
sub display_ip {
my $ip = $CONFIG->{display_ip};
return $ip if $ip;
=head2 nat_ip
Returns the IP for NATed environments
sub nat_ip {
return $CONFIG->{nat_ip} if exists $CONFIG->{nat_ip};
sub _init_config {
my $file = shift or confess "ERROR: Missing config file";
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