Skip to content

Commit

Permalink
wip: allow change config for nat and display
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed May 10, 2023
1 parent d4b19d8 commit 3bce48e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Ravada.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2829,7 +2829,9 @@ sub display_ip($self=undef, $new_ip=undef) {
if (!length $new_ip) {
delete $CONFIG->{display_ip};
} else {
unlock_hash(%$CONFIG);
$CONFIG->{display_ip} = $new_ip;
lock_hash(%$CONFIG);
}
}
my $ip;
Expand All @@ -2848,7 +2850,9 @@ sub nat_ip($self=undef, $new_ip=undef) {
if (!length $new_ip) {
delete $CONFIG->{nat_ip};
} else {
unlock_hash(%$CONFIG);
$CONFIG->{nat_ip} = $new_ip;
lock_hash(%$CONFIG);
}
}

Expand Down

0 comments on commit 3bce48e

Please sign in to comment.