]> 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, 2 Jun 2025 19:46:39 +0000 (19:46 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index c2a884358e5aef61583da12e47b8baea6ccd6320..b7706a3c2679ea8788157adb3da458fe233a4d46 100644 (file)
@@ -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