* [PATCH] ovpnmain.cgi: CU202 fix - Update the RW Log Status extraction
@ 2026-05-11 10:42 Adolf Belka
0 siblings, 0 replies; only message in thread
From: Adolf Belka @ 2026-05-11 10:42 UTC (permalink / raw)
To: development; +Cc: Adolf Belka
- Previously the second section of the RW Log Status file had IP:Port, so selecting the
first part of that section showed the IP.
- The new status now has Protocol:IP:Port so the selection has to be changed to the
second part of that section so the index goes from 0 to 1
- That was missed by me when I did the OpenVPON-2.7 update
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@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 ab91eec57..4e3cc7f50 100644
--- a/html/cgi-bin/ovpnmain.cgi
+++ b/html/cgi-bin/ovpnmain.cgi
@@ -3187,7 +3187,7 @@ END
$users[$uid]{'BytesSent'} = &General::formatBytes($match[4]);
$users[$uid]{'Since'} = $match[5];
- my $address = (split ':', $users[$uid]{'RealAddress'})[0];
+ my $address = (split ':', $users[$uid]{'RealAddress'})[1];
$users[$uid]{'RealAddress'} = $address;
$users[$uid]{'Country'} = &Location::Functions::lookup_country_code($address);
$uid++;
--
2.54.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-11 10:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-11 10:42 [PATCH] ovpnmain.cgi: CU202 fix - Update the RW Log Status extraction Adolf Belka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox