From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4c5zFB693Sz2xXb for ; Tue, 19 Aug 2025 18:51:10 +0000 (UTC) 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 ; 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 To: development@lists.ipfire.org Cc: Stefan Schantl 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: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Only apply the default settings in case nothing has been configured yet, otherwise existing settings may get overwritten. Signed-off-by: Stefan Schantl --- 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