From: Fabian Keil Date: Mon, 25 May 2009 19:11:03 +0000 (+0000) Subject: Highlight: Could not connect to [10.0.0.1]:80. X-Git-Tag: v_3_0_13~72 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=a13c0e8f98f4c0d8a90c43415fa42e9cfb3846cb;hp=1e870385ec3de74c0d560b14caee81e47a53fdf8 Highlight: Could not connect to [10.0.0.1]:80. --- diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 0a68da2f..ab4b2f1a 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -8,7 +8,7 @@ # # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/ # -# $Id: privoxy-log-parser.pl,v 1.145 2009/05/19 17:21:35 fk Exp $ +# $Id: privoxy-log-parser.pl,v 1.146 2009/05/25 19:10:20 fk Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -1564,6 +1564,13 @@ sub handle_loglevel_connect ($) { $c = highlight_matched_host($c, '(?<=Connected to )[^\[\s]+'); $c =~ s@(?<=\]:)(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Could not connect to /) { + + # Could not connect to [10.0.0.1]:80. + + $c = highlight_matched_host($c, '(?<=\[)[^\]]+'); + $c =~ s@(?<=\]:)(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Waiting for the next client request/ or $c =~ m/^The connection on server socket/ ) {