]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - html/cgi-bin/index.cgi
IPsec: Fix showing tunnels as connecting when they are established
[ipfire-2.x.git] / html / cgi-bin / index.cgi
index 5aec4c594a5ef328fdf66359f830b84d8ee24c0d..fdf62361d26594f6c91579e02bd1348584aa183f 100644 (file)
@@ -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'};