projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6628734
)
Accept and highlight: Accepted connection from 10.0.0.1 on socket 5
author
Fabian Keil
<fk@fabiankeil.de>
Tue, 4 Sep 2012 08:40:25 +0000
(08:40 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Tue, 4 Sep 2012 08:40:25 +0000
(08:40 +0000)
tools/privoxy-log-parser.pl
patch
|
blob
|
history
diff --git
a/tools/privoxy-log-parser.pl
b/tools/privoxy-log-parser.pl
index
157c21b
..
b17b415
100755
(executable)
--- a/
tools/privoxy-log-parser.pl
+++ b/
tools/privoxy-log-parser.pl
@@
-8,7
+8,7
@@
#
# http://www.fabiankeil.de/sourcecode/privoxy-log-parser/
#
#
# http://www.fabiankeil.de/sourcecode/privoxy-log-parser/
#
-# $Id: privoxy-log-parser.pl,v 1.13
6 2012/07/27 17:42:39
fabiankeil Exp $
+# $Id: privoxy-log-parser.pl,v 1.13
7 2012/09/04 08:39:30
fabiankeil Exp $
#
# TODO:
# - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting
#
# TODO:
# - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting
@@
-1422,10
+1422,13
@@
sub handle_loglevel_connect ($) {
$c = highlight_matched_host($c, '(?<=to )[^\s]+');
$c = highlight_matched_host($c, '(?<=to )[^\s]+');
- } elsif ($c =~ m/^
a
ccepted connection from .*/ or
+ } elsif ($c =~ m/^
[Aa]
ccepted connection from .*/ or
$c =~ m/^OK/) {
$c =~ m/^OK/) {
- # accepted connection from 10.0.0.1 on socket 5
+ # Privoxy 3.0.20:
+ # Accepted connection from 10.0.0.1 on socket 5
+ # Privoxy between 3.0.20 and 3.0.6:
+ # accepted connection from 10.0.0.1( on socket 5)?
# Privoxy 3.0.6 and earlier just say:
# OK
$c = highlight_matched_host($c, '(?<=connection from )[^ ]*');
# Privoxy 3.0.6 and earlier just say:
# OK
$c = highlight_matched_host($c, '(?<=connection from )[^ ]*');