]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ovpnmain.cgi: Display only IP for Real Address in Connection Statistics Page
authorAdolf Belka <adolf.belka@ipfire.org>
Sat, 11 Apr 2026 11:45:29 +0000 (13:45 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Apr 2026 09:12:20 +0000 (09:12 +0000)
- In the Connection Statistics page under Real Address it was showing the IP:Port instead
   of just the IP.
- The IP was being split out in $address but this variable was not then used to display
   the Real Address.
- This patch fixes that so that only the IP is shown for the Real Address.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index b435d9e1ba2d7ed36950ca6c3ffb0aad6849a0cd..b0d950cbbe54c14cb74efbd2424ac8abb28590ae 100644 (file)
@@ -3192,6 +3192,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++;