From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Cc: Stefan Schantl <stefan.schantl@ipfire.org>
Subject: [PATCH] ovpnmain.cgi: Apply default settings when neccessary
Date: Tue, 19 Aug 2025 20:39:16 +0200 [thread overview]
Message-ID: <20250819183916.5083-1-stefan.schantl@ipfire.org> (raw)
In-Reply-To: <118761f0-24cd-4a62-b064-8d87dffc6b89@ipfire.org>
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>
---
html/cgi-bin/ovpnmain.cgi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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'});
--
2.47.2
next prev parent reply other threads:[~2025-08-19 18:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <175490371612.107547.14288613781884197415.ipfire@ipfire.org>
2025-08-11 14:01 ` IPFire 2.29 - Core Update 197 is available for testing Adolf Belka
2025-08-11 14:51 ` Adolf Belka
2025-08-11 19:29 ` Peer Dietzmann
2025-08-14 19:00 ` Adolf Belka
2025-08-19 15:11 ` Michael Tremer
2025-08-19 15:56 ` Adolf Belka
2025-08-19 18:39 ` Stefan Schantl [this message]
2025-08-20 16:59 ` Adolf Belka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250819183916.5083-1-stefan.schantl@ipfire.org \
--to=stefan.schantl@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox