From 2616e38ac513d1e4fc439fbca1197135f69e186b Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 9 Jun 2020 10:07:09 +0200 Subject: [PATCH 1/1] privoxy-log-parser.pl: Unbreak the gathering of host statistics with http requests ... and CONNECT requests. --- tools/privoxy-log-parser.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index fb220980..09639938 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -2040,7 +2040,7 @@ sub gather_loglevel_clf_stats($) { $stats{'http-version'}{$http_version}++; if ($cli_options{'host-statistics-threshold'} != 0) { - $resource =~ m@(?:http[s]://)([^/]+)/?@; + $resource =~ m@(?:https?://)?([^/]+)/?@; $stats{'hosts'}{$1}++; } $stats{'content-size-total'} += $size; -- 2.39.2