]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ovpnmain.cgi: CU202 fix - Update the RW Log Status extraction
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 11 May 2026 10:42:27 +0000 (12:42 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 11 May 2026 17:52:39 +0000 (17:52 +0000)
- 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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index ab91eec570fec74255c160734ffbb3a2c11bf62c..4e3cc7f50871a9bebaad7bd6c9eb08b284e91114 100644 (file)
@@ -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++;