From: Adolf Belka Date: Wed, 3 Sep 2025 11:10:31 +0000 (+0200) Subject: ovpnmain.cgi: Show only IP for Real Address in Connection Statistics page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fopenvpn-2.7_alpha3;p=people%2Fbonnietwin%2Fipfire-2.x.git ovpnmain.cgi: Show only IP for Real Address in Connection Statistics page - Protocol:IP:Port was being shown rather than IP alone. Signed-off-by: Adolf Belka --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 676b12c56..cdebecb44 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -3128,7 +3128,8 @@ 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++;