Re-apply: 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>
Wed, 14 May 2014 19:46:22 +0000 (21:46 +0200)
When the client is in the WAIT state, it is usally connected
to the server.

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

html/cgi-bin/ovpnmain.cgi

index a051b5d..8390be0 100644 (file)
@@ -5177,7 +5177,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 {