]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
ovpnmain.cgi: Explicitly notify clients that the server is going down
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 16 Apr 2024 11:25:30 +0000 (13:25 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Sep 2024 11:29:09 +0000 (13:29 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index f14b060854af035b7e15d83049fcb2a0cd5084f4..9baa49f236b3aff5c786f3d2396d718c3c58730f 100755 (executable)
@@ -360,6 +360,9 @@ sub writeserverconf {
                print CONF "providers legacy default\n";
        }
 
+       # Send clients a message when the server is being shut down
+       print CONF "explicit-exit-notify\n";
+
     close(CONF);
 
        # Rewrite all CCD configurations