From: Michael Tremer Date: Tue, 16 Apr 2024 11:25:30 +0000 (+0200) Subject: ovpnmain.cgi: Explicitly notify clients that the server is going down X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07abbc2b9676f7edd66f68ee01f69cac55951630;p=people%2Fms%2Fipfire-2.x.git ovpnmain.cgi: Explicitly notify clients that the server is going down Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index c2a884358..b7706a3c2 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -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