From fae6f15fbe555ee768415a67842ec72b914fb90c Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Mon, 1 Jul 2024 04:14:51 +0000 Subject: [PATCH] LoxiLB UI: remove @nosaved items remove @nosaved from /var/ipfire/loxilb/settings as it could interfere with running state of loxilb Signed-off-by: Vincent Li --- html/cgi-bin/loxilb.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/cgi-bin/loxilb.cgi b/html/cgi-bin/loxilb.cgi index 4541db9e1..edd338040 100644 --- a/html/cgi-bin/loxilb.cgi +++ b/html/cgi-bin/loxilb.cgi @@ -59,7 +59,7 @@ $settings{'ACTION'} = ''; $settings{'KEY1'} = ''; # point record for ACTION $settings{'virtualIP'} = ''; $settings{'interface'} = ''; -my @nosaved=('virtualIP','interface'); +my @nosaved=('virtualIP','interface', 'KEY1', 'SORT_virtualIPLIST'); #Define each field that can be used to sort columns my $sortstring='^virtualIP'; @@ -77,6 +77,7 @@ if (open(FILE, "$loxilbipfile")) { if ($settings{'ACTION'} eq $Lang::tr{'save'}) { + map (delete ($settings{$_}) ,(@nosaved)); &General::writehash("$loxilbsettingfile", \%settings); if ($settings{'ENABLE_LOXILB'} eq 'on') {