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-Tag: v2.29-core197~25^2~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e85939b2e0a9d6dd8522384459549452e4ee45fb;p=ipfire-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