From 8aecb0547b6587db0ecb754cd5c78179c1b5c19a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 16 Apr 2024 13:25:30 +0200 Subject: [PATCH] ovpnmain.cgi: Explicitly notify clients that the server is going down Signed-off-by: Michael Tremer --- html/cgi-bin/ovpnmain.cgi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 388ce7612..67fdbc5d9 100755 --- 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 -- 2.39.5