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 4d2MXw5n9vz32Zf for ; Thu, 06 Nov 2025 12:52:32 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4d2MXs3NY0z2xMD for ; Thu, 06 Nov 2025 12:52:29 +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 4d2MXq6Zgvz2g2; Thu, 06 Nov 2025 12:52:27 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1762433548; 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; bh=CjI7ZX0LWLVRffC4WRBerWl02iJlEOxKbqC+dlKHBfo=; b=lIarnNSxuD2wYhVzOjM4lhZgZsqbFaI66RWzfxdwC4ig6a8wp0yPZds6fNMrdqhD0vufyr AA0BOcTfdhVex1Bg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1762433548; 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; bh=CjI7ZX0LWLVRffC4WRBerWl02iJlEOxKbqC+dlKHBfo=; b=r28pXnCgOi9GuvgL+2+hbknE9CoqAA/pKMhOX3KZZ5ah0fbN/5xiBU0JFZJpQhFlz2jKtW TLSSHXgOBfBxHgeuLwjcZ4nXR6Yy2P6u8NVZcZebuoL9KTgpNn9n5/h9+HaKTSSmokZv4q vxLNDgfM7QcRjw+Xly8tZVIZ4K1gbphTJ0F5RDg8VzVCHhQJ8X0f09b6FpDAq8f0NiZ6yg 9RS3OcZl09HvaQqkhOgwWvW6sAKOGfqmgkru86PA6N7loYOyzci4OpeSJCgHolGdmi5rM1 ckDXmlsyK+R4NAuN8+X3K4mZVYpgA5zBmFvQAkvkxvn13HMkyud7KUgfGvAOGQ== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH] ovpnmain.cgi: Show only IP for Real Address in Connection Statistics page Date: Thu, 6 Nov 2025 13:52:25 +0100 Message-ID: <20251106125225.85685-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 - IP:Port was being shown rather than IP alone. The status was being split but not copied back into the variable that is then shown on the status page. - Tested on my vm system. The status page changed from showing IP:Port to only IP for Real Address. Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- html/cgi-bin/ovpnmain.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index ec86a218b..814499d21 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2023 IPFire Team # +# Copyright (C) 2007-2025 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -3178,6 +3178,7 @@ END $users[$uid]{'Since'} = $match[5]; my $address = (split ':', $users[$uid]{'RealAddress'})[0]; + $users[$uid]{'RealAddress'} = $address; $users[$uid]{'Country'} = &Location::Functions::lookup_country_code($address); $uid++; -- 2.51.2