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 4ftBgs4ZK6z33ss for ; Sat, 11 Apr 2026 11:45:45 +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) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4ftBgj1mWGz33ty for ; Sat, 11 Apr 2026 11:45:37 +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 4ftBgj0KBqz752; Sat, 11 Apr 2026 11:45:36 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1775907937; 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=Q5aEoSCKJ8sIGsle7xlk093nSwXhh7KorniQwpW4RtA=; b=A3FRuBqyQHNlXZV1DPkgfWzx3o3pNNBM70venmeBvy1e4xRepMMfd6dgRgIEOEhefaSt5c 3rg3pF4qHRjFxeDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1775907937; 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=Q5aEoSCKJ8sIGsle7xlk093nSwXhh7KorniQwpW4RtA=; b=J8vWMl4gBKaAYITrgfvvPUiN1itkrRYmZ4gz7m+zCjGZwb0eYq5lfhCjsGkPliPVNd5bzG G+ZWdM1p8yMb0IQPBExe5tKyfk7e9N55D3kgJ+DmKk9G4vK0HI12JiifOGiVUUhlp14hoR cnZNQF2mizNsS/NgJWvSNEvEXlUg71I2+xjVw2PMxPJVoyhZV1KPI5cFu5Gxvc9eTIXtIJ 77pBmRHyqv9zT02815b72rCaTu/wCeVMwEOttRjs/aQHDv0bhH0MwlcrU9ovnFS4iY2Y6A EfhtvgKjs4GJJ1J1fB0nvG947Ansy0RvqdfdO5LYqCXg5UcUdw8a890Bdal3Hw== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH 7/7] ovpnmain.cgi: Update status extraction for Connection Status Date: Sat, 11 Apr 2026 13:45:32 +0200 Message-ID: <20260411114532.43348-7-adolf.belka@ipfire.org> In-Reply-To: <20260411114532.43348-1-adolf.belka@ipfire.org> References: <20260411114532.43348-1-adolf.belka@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 - The format of the connection status has changed and this change ensures that the status is correctly shown in the Connection Status and Control table Signed-off-by: Adolf Belka --- html/cgi-bin/ovpnmain.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 3fb356acd..ab91eec57 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -5314,8 +5314,8 @@ END foreach my $line (@status) { chomp($line); - if ($line =~ /^(.+),(\d+\.\d+\.\d+\.\d+\:\d+),(\d+),(\d+),(.+)/) { - my @match = split(m/^(.+),(\d+\.\d+\.\d+\.\d+\:\d+),(\d+),(\d+),(.+)/, $line); + if ($line =~ /^(.+),(.+\:\d+\.\d+\.\d+\.\d+\:\d+),(\d+),(\d+),(.+)/) { + my @match = split(m/^(.+),(.+\:\d+\.\d+\.\d+\.\d+\:\d+),(\d+),(\d+),(.+)/, $line); if ($match[1] ne "Common Name") { $cn = $match[1]; -- 2.53.0