From 3bce48e3ecd047a314a3173cee6dfbad90cc1c66 Mon Sep 17 00:00:00 2001 From: Francesc Guasch Date: Wed, 10 May 2023 11:58:09 +0200 Subject: [PATCH] wip: allow change config for nat and display --- lib/Ravada.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Ravada.pm b/lib/Ravada.pm index 11a043b45..f9f1a0c5a 100644 --- a/lib/Ravada.pm +++ b/lib/Ravada.pm @@ -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; @@ -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); } }