From: Michael Tremer Date: Tue, 31 Mar 2020 09:54:42 +0000 (+0000) Subject: IPsec: Fix showing tunnels as connecting when they are established X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7381d00a1eff4884ab29405adc618f9e0e58b9dd;p=people%2Fms%2Fipfire-2.x.git IPsec: Fix showing tunnels as connecting when they are established Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index bd6a02ef5e..a8e22fbc29 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -457,6 +457,7 @@ END if (($line =~ /\"$vpnconfig{$key}[1]\".*IPsec SA established/) || ($line =~/$vpnconfig{$key}[1]\{.*INSTALLED/ )){ $activecolor = $Header::colourgreen; $activestatus = $Lang::tr{'capsopen'}; + last; } elsif ($line =~ /$vpnconfig{$key}[1]\[.*CONNECTING/) { $activecolor = $Header::colourorange; $activestatus = $Lang::tr{'vpn connecting'}; diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index e0f2c7a5e5..b68f35b7dd 100644 --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -3019,6 +3019,7 @@ END ($line =~ /$confighash{$key}[1]\{.*INSTALLED/)) { $col1="bgcolor='${Header::colourgreen}'"; $active = "$Lang::tr{'capsopen'}"; + last; } elsif ($line =~ /$confighash{$key}[1]\[.*CONNECTING/) { $col1="bgcolor='${Header::colourorange}'"; $active = "$Lang::tr{'vpn connecting'}";