projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0385feb
)
Highlight:
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 27 Jun 2009 15:10:16 +0000
(15:10 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sat, 27 Jun 2009 15:10:16 +0000
(15:10 +0000)
Appended client IP address to X-Forwarded-For: 10.0.0.2, 10.0.0.1
tools/privoxy-log-parser.pl
patch
|
blob
|
history
diff --git
a/tools/privoxy-log-parser.pl
b/tools/privoxy-log-parser.pl
index
5a938f0
..
e8e75b0
100755
(executable)
--- a/
tools/privoxy-log-parser.pl
+++ b/
tools/privoxy-log-parser.pl
@@
-1007,6
+1007,11
@@
sub handle_loglevel_header ($) {
$content =~ s@(?<= from )(\d+)@$h{'Number'}$1$h{'Standard'}@;
$content =~ s@(?<= to )(\d+)@$h{'Number'}$1$h{'Standard'}@;
+ } elsif ($c =~ m/^Appended client IP address to/) {
+
+ # Appended client IP address to X-Forwarded-For: 10.0.0.2, 10.0.0.1
+ $content =~ s@(?<=X-Forwarded-For )(\d+)@$h{'Host'}$1$h{'Standard'}@;
+
} else {
found_unknown_content($content);