From: Stefan Schantl Date: Tue, 19 Aug 2025 18:39:16 +0000 (+0200) Subject: ovpnmain.cgi: Apply default settings when neccessary X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77f1c6dc3999d2174079bf57f1a6078c5e74f7ab;p=ipfire-2.x.git ovpnmain.cgi: Apply default settings when neccessary Only apply the default settings in case nothing has been configured yet, otherwise existing settings may get overwritten. Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 83f9fdc02..a2f95dc9a 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -132,7 +132,7 @@ my $col=""; "MAX_CLIENTS" => 100, "MSSFIX" => "off", "TLSAUTH" => "on", -}); +}) unless (%vpnsettings); # Load CGI parameters &Header::getcgihash(\%cgiparams, {'wantfile' => 1, 'filevar' => 'FH'});