[4/7] ovpnmain.cgi: Display only IP for Real Address in Connection Statistics Page
Commit Message
- 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>
---
html/cgi-bin/ovpnmain.cgi | 1 +
1 file changed, 1 insertion(+)
@@ -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++;