Message ID | 20250819183916.5083-1-stefan.schantl@ipfire.org |
---|---|
State | Staged |
Commit | 77f1c6dc3999d2174079bf57f1a6078c5e74f7ab |
Headers |
Return-Path: <development+bounces-823-patchwork=ipfire.org@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4c5zFB2wDrz3wbG for <patchwork@web04.haj.ipfire.org>; Tue, 19 Aug 2025 18:51:10 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [IPv6:2001:678:b28::201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "E6" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4c5zFB1S11z5MJ for <patchwork@ipfire.org>; Tue, 19 Aug 2025 18:51:10 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=ipfire.org header.s=202003ed25519 header.b=xDNisDgJ; dkim=pass header.d=ipfire.org header.s=202003rsa header.b="q/bL4no0"; spf=softfail (mail01.ipfire.org: 2001:678:b28::201 is neither permitted nor denied by domain of "development+bounces-823-patchwork=ipfire.org@lists.ipfire.org") smtp.mailfrom="development+bounces-823-patchwork=ipfire.org@lists.ipfire.org"; dmarc=pass (policy=reject) header.from=ipfire.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1755629470; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Mq48stxTMiuqvs4dV8mUZAUNMgcrRnlmNnNFD3/+2E8=; b=s7r0myJuM0YZ+om2rbuKFP2mSMKD5WZrxCkkS3IPdY6BYNA0MYlRLziEdYkNOGeH2hZaNx Bh5TBjWfq7yAnBxTqFgqDrxfjwMPNweDMV3PjJRsQNTFqr/LuyNCfvPUo8+9xkj2fpTzj1 5XQNYzq0OzvbyRUTukq97sFPNYwCnju/Bh7Lzazi6bJOPUZjgOBVc1AquIE6h3nMoWVQ/x F76FyD0RlPQ7Dzwro6UylYDAX4jDLKl3+XK0lgRHCQBtNfQNBy97Rmh2JhFLIniua9kUAt 0Mb8Tawk0QPzg1fI9VwVDQsdlR0ZbtGSg2uP1tzvYNrsb5HSf/7pVHCONAZaFw== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=ipfire.org header.s=202003ed25519 header.b=xDNisDgJ; dkim=pass header.d=ipfire.org header.s=202003rsa header.b="q/bL4no0"; spf=softfail (mail01.ipfire.org: 2001:678:b28::201 is neither permitted nor denied by domain of "development+bounces-823-patchwork=ipfire.org@lists.ipfire.org") smtp.mailfrom="development+bounces-823-patchwork=ipfire.org@lists.ipfire.org"; dmarc=pass (policy=reject) header.from=ipfire.org ARC-Seal: i=1; s=202003rsa; d=ipfire.org; t=1755629470; a=rsa-sha256; cv=none; b=BkZi+qIykr1C8BQ6ITnMtL0riNYZUdcdQDP4QG4t3nM2co2gerZa6PMqTRhbcvSoWCpWPj FlalwxoYK9SYIiI8fSTpbCr9D8CBgY/E3fnX7gOY7kpvBaFRX9ynmpCqkqZ+JXqRlScQSK 1hH4cEzn8197EIwBSX1GY/WrwKSSpPaUXtGzRWoJMRbW32lHZrx+2YHJr5Ok3/4GNcf2M9 Ih8Yw0TUEEL0scpHWK14l6Vt/WAhKKn4L8D33J6qnJdopDLISWR69re2rPbVzMb7lfb/A2 bmsPmPtWKmWz2paS+jPtagPa6PQWnTyXyy2ofsGWTr/BSyWreij2QvbR4eARFQ== Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4c5zFB0jNgz2ylb for <patchwork@ipfire.org>; Tue, 19 Aug 2025 18:51:10 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4c5zF72HWgz2xLt for <development@lists.ipfire.org>; Tue, 19 Aug 2025 18:51:07 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4c5zF61rznz1XY; Tue, 19 Aug 2025 18:51:06 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1755629466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mq48stxTMiuqvs4dV8mUZAUNMgcrRnlmNnNFD3/+2E8=; b=xDNisDgJnyt78jtm4FmTKjdWHraCZwgba+WHOelE/DHi46HVOs4X9pd0kkvq0ryUhX23up e4kDKu44vtGvruAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1755629466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mq48stxTMiuqvs4dV8mUZAUNMgcrRnlmNnNFD3/+2E8=; b=q/bL4no0UI27WiErNrf5/5xd7JfoEjD+8IpNm+J2Uwjcrl7RR+cRBBj59J/xhSedKXluhv TcGAbveo5/zj0xAl3i5/HT5UBEgEo7qPRrmy8VdfPsQgZoFhY6q5wxm7T3LNU33t+FRckT rrj6XNeS76Q3LQa7WzyaoPjyyVqYdI1aomxzX2Q4HHY/cSLpuCy0JuTlIhp0vJy+aVgBAL OX9mXdwBlTO76L0gKzr7UXg+BPaHeDp65Kj6bs1aaveUzqsG3WbPQJa+FHsI9ah6SgW5qC tQIWGJC3lRJ9Q7b3gT3U/+WJv7iVjye0QUVwHwLXAb/knf9Cj+GjJfIWvozwsw== 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 Message-ID: <20250819183916.5083-1-stefan.schantl@ipfire.org> In-Reply-To: <118761f0-24cd-4a62-b064-8d87dffc6b89@ipfire.org> References: <118761f0-24cd-4a62-b064-8d87dffc6b89@ipfire.org> Precedence: list List-Id: <development.lists.ipfire.org> List-Subscribe: <https://lists.ipfire.org/>, <mailto:development+subscribe@lists.ipfire.org?subject=subscribe> List-Unsubscribe: <https://lists.ipfire.org/>, <mailto:development+unsubscribe@lists.ipfire.org?subject=unsubscribe> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development+help@lists.ipfire.org?subject=help> Sender: <development@lists.ipfire.org> Mail-Followup-To: <development@lists.ipfire.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Action: no action X-Rspamd-Queue-Id: 4c5zFB1S11z5MJ X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [-10.10 / 11.00]; BAYES_HAM(-3.00)[99.99%]; DWL_DNSWL_MED(-2.00)[ipfire.org:dkim]; FROM_INTERNAL_BULK_SENDERS(-2.00)[2001:678:b28::201]; R_DKIM_ALLOW(-1.61)[ipfire.org:s=202003ed25519,ipfire.org:s=202003rsa]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-1.00)[-1.000]; DKIM_REPUTATION(-0.88)[-0.87675452989879]; R_MISSING_CHARSET(0.50)[]; DMARC_POLICY_ALLOW_WITH_FAILURES(-0.50)[]; IP_REPUTATION_HAM(-0.32)[asn: 204867(-0.09), country: DE(0.00), ip: 2001:678:b28::(-0.23)]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; HAS_LIST_UNSUB(-0.01)[]; DKIM_TRACE(0.00)[ipfire.org:+]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_HELO_LOCALHOST(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:204867, ipnet:2001:678:b28::/48, country:DE]; RCVD_COUNT_THREE(0.00)[3]; ARC_SIGNED(0.00)[ipfire.org:s=202003rsa:i=1]; DMARC_POLICY_ALLOW(0.00)[ipfire.org,reject]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_SOFTFAIL(0.00)[~all:c]; RCVD_TLS_LAST(0.00)[]; FORGED_SENDER_MAILLIST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[stefan.schantl@ipfire.org,development@lists.ipfire.org]; TAGGED_FROM(0.00)[bounces-823-patchwork=ipfire.org] |
Series |
ovpnmain.cgi: Apply default settings when neccessary
|
|
Commit Message
Stefan Schantl
19 Aug 2025, 6:39 p.m. UTC
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'});