public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] ovpnmain.cgi: Show only IP for Real Address in Connection Statistics page
@ 2025-11-06 12:52 Adolf Belka
  2026-01-29 19:06 ` Adolf Belka
  0 siblings, 1 reply; 2+ messages in thread
From: Adolf Belka @ 2025-11-06 12:52 UTC (permalink / raw)
  To: development; +Cc: Adolf Belka

- 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 <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 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  <info@ipfire.org>                     #
+# Copyright (C) 2007-2025  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ovpnmain.cgi: Show only IP for Real Address in Connection Statistics page
  2025-11-06 12:52 [PATCH] ovpnmain.cgi: Show only IP for Real Address in Connection Statistics page Adolf Belka
@ 2026-01-29 19:06 ` Adolf Belka
  0 siblings, 0 replies; 2+ messages in thread
From: Adolf Belka @ 2026-01-29 19:06 UTC (permalink / raw)
  To: development

Hi Michael,

I realised that my patch below had not been dealt with. Was it just missed? If it is okay, do I need to resubmit the patch with the time period that has gone past?

Regards,

Adolf.

On 06/11/2025 13:52, Adolf Belka wrote:
> - 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 <adolf.belka@ipfire.org>
> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
> ---
>   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  <info@ipfire.org>                     #
> +# Copyright (C) 2007-2025  IPFire Team  <info@ipfire.org>                     #
>   #                                                                             #
>   # 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++;
>   



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-29 19:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-06 12:52 [PATCH] ovpnmain.cgi: Show only IP for Real Address in Connection Statistics page Adolf Belka
2026-01-29 19:06 ` Adolf Belka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox