]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ovpnmain.cgi: Apply default settings when neccessary
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 19 Aug 2025 18:39:16 +0000 (20:39 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 20 Aug 2025 17:10:10 +0000 (17:10 +0000)
Only apply the default settings in case nothing has been configured yet,
otherwise existing settings may get overwritten.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index 83f9fdc022cfb8e4cc58a01d9ef1fcc512148ab7..a2f95dc9a1eb6142a92306cf8fdafdde86715ec0 100644 (file)
@@ -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'});