From e553c8c8f41604ff892b2ecba11ed68231bab6f0 Mon Sep 17 00:00:00 2001 From: Adolf Belka Date: Wed, 3 Sep 2025 13:10:31 +0200 Subject: [PATCH] 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 --- html/cgi-bin/ovpnmain.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; -- 2.47.2