From ad48eb49d6d6506cc40c6b7edae23a3f73ced615 Mon Sep 17 00:00:00 2001 From: ReinaldoFeitosa Date: Mon, 23 Mar 2015 21:24:38 -0300 Subject: Update sqstat.class.php Fix erro in Squid 3.2 or later --- config/lightsquid/sqstat.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/lightsquid/sqstat.class.php b/config/lightsquid/sqstat.class.php index 5707e051..c596616d 100644 --- a/config/lightsquid/sqstat.class.php +++ b/config/lightsquid/sqstat.class.php @@ -202,8 +202,12 @@ class squidstat{ } if ($connection) { # username field is avaible in Squid 2.6 stable + # peer changed to remote in Squid 3.2 or later + # me changed to local in Squid 3.2 or later if(substr($v,0,9) == "username ") $parsed["con"][$connection]["username"] = substr($v, 9); + if(substr($v,0,7) == "remote:") $parsed["con"][$connection]["peer"] = substr($v, 8); if(substr($v,0,5) == "peer:") $parsed["con"][$connection]["peer"] = substr($v, 6); + if(substr($v,0,6) == "local:") $parsed["con"][$connection]["me"] = substr($v, 7); if(substr($v,0,3) == "me:") $parsed["con"][$connection]["me"] = substr($v, 4); if(substr($v,0,4) == "uri ") $parsed["con"][$connection]["uri"] = substr($v, 4); if(substr($v,0,10) == "delay_pool") $parsed["con"][$connection]["delay_pool"] = substr($v, 11); @@ -423,6 +427,7 @@ class squidstat{ else # i use ip2long() to make ip sorting work correctly if ($resolveip) { + echo $ip; $hostname = gethostbyaddr($ip); if ($hostname == $ip) $ip = ip2long($ip); # resolve failed. use (ip2long) key -- cgit v1.2.3 From d42654adf965de0a745fa7a6de9b1803c2e4c3ab Mon Sep 17 00:00:00 2001 From: ReinaldoFeitosa Date: Sun, 29 Mar 2015 20:08:37 -0300 Subject: Update sqstat.class.php Removed echo (Debug) --- config/lightsquid/sqstat.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/config/lightsquid/sqstat.class.php b/config/lightsquid/sqstat.class.php index c596616d..88a5cfce 100644 --- a/config/lightsquid/sqstat.class.php +++ b/config/lightsquid/sqstat.class.php @@ -427,7 +427,6 @@ class squidstat{ else # i use ip2long() to make ip sorting work correctly if ($resolveip) { - echo $ip; $hostname = gethostbyaddr($ip); if ($hostname == $ip) $ip = ip2long($ip); # resolve failed. use (ip2long) key -- cgit v1.2.3 From 0fc7c650fbe07e8c808728f256881f242c1ffe24 Mon Sep 17 00:00:00 2001 From: ReinaldoFeitosa Date: Tue, 7 Apr 2015 22:56:24 -0300 Subject: Update pkg_config.10.xml --- pkg_config.10.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg_config.10.xml b/pkg_config.10.xml index 1dbb004f..7bbb3ada 100644 --- a/pkg_config.10.xml +++ b/pkg_config.10.xml @@ -511,7 +511,7 @@ High performance web proxy report (LightSquid). Proxy realtime stat (SQStat). Requires squid HTTP proxy. http://lightsquid.sf.net/ Network Report - 1.8.2 pkg v.2.35 + 1.8.2 pkg v.2.36 dv_serg@mail.ru lightsquid-1.8_2-##ARCH##.pbi -- cgit v1.2.3