From: Michael Tremer Date: Thu, 14 Aug 2025 10:01:23 +0000 (+0100) Subject: ovpnmain.cgi: Add option to rewrite all configuration files X-Git-Tag: v2.29-core197~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e82d9990cbdd4b0f022e16aecec164008926717;p=ipfire-2.x.git ovpnmain.cgi: Add option to rewrite all configuration files Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 3b5941bde..83f9fdc02 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -1001,6 +1001,12 @@ sub openvpn_status($) { return $status; } +# Hook to regenerate the configuration files +if ($ENV{"REMOTE_ADDR"} eq "") { + &writeserverconf(); + exit(0); +} + ### ### Save Advanced options ###