OpenVPN: Fix daemon stuck in WAIT state.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Jan 2014 14:40:50 +0000 (15:40 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Jan 2014 14:40:50 +0000 (15:40 +0100)
When the client is in the WAIT state, it is usally connected
to the server.

html/cgi-bin/index.cgi
html/cgi-bin/ovpnmain.cgi

index b3a262994b8b6e56dc327bb38af034b6b064a848..d6115bdb00c5b2297abc04e20313298186a7a790 100644 (file)
@@ -404,7 +404,7 @@ END
 
                                my $display;
                                my $display_colour = $Header::colourred;
-                               if ( $tustate[1] eq 'CONNECTED') {
+                               if (($tustate[1] eq 'CONNECTED') || ($tustate[1] eq 'WAIT')) {
                                        $display_colour = $Header::colourgreen;
                                        $display = $Lang::tr{'capsopen'};
                                } else {
index 75b6c75f10c9cb6a8389067db9d6dc7dd889965d..b075cc54d9bac8d92fc292e061a5d500024f47d2 100644 (file)
@@ -4941,7 +4941,7 @@ END
 #EXITING       -- A graceful exit is in progress.
 ####
 
-               if ( $tustate[1] eq 'CONNECTED') {
+               if (($tustate[1] eq 'CONNECTED') || ($tustate[1] eq 'WAIT')) {
                        $col1="bgcolor='${Header::colourgreen}'";
                        $active = "<b><font color='#FFFFFF'>$Lang::tr{'capsopen'}</font></b>";
                }else {