]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/index.cgi
IPsec: Show connected status for waiting connections that are active
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / index.cgi
index ef9da2389b41de4277f2d633ab9e4e19ba15fd80..03dc3574d00f3a2b5f17d9e75026d2017b17cca6 100644 (file)
@@ -465,6 +465,10 @@ END
 
                                my $activecolor = $Header::colourred;
                                my $activestatus = $Lang::tr{'capsclosed'};
+                               if ($vpnconfig{$key}[33] eq "add") {
+                                       $activecolor = ${Header::colourorange};
+                                       $activestatus = $Lang::tr{'vpn wait'};
+                               }
                                if ($vpnconfig{$key}[0] eq 'off') {
                                        $activecolor = $Header::colourblue;
                                        $activestatus = $Lang::tr{'capsclosed'};
@@ -479,9 +483,6 @@ END
                                                } elsif ($line =~ /$vpnconfig{$key}[1]\{.*ROUTED/) {
                                                        $activecolor = $Header::colourorange;
                                                        $activestatus = $Lang::tr{'vpn on-demand'};
-                                               } elsif ($vpnconfig{$key}[33] eq "add") {
-                                                       $activecolor = ${Header::colourorange};
-                                                       $activestatus = $Lang::tr{'vpn wait'};
                                                }
                                        }
                                }