parent
ce734daf14
commit
5cdd0d42a6
1 changed files with 14 additions and 2 deletions
@ -1,6 +1,18 @@ |
|||||||
|
{ |
||||||
|
|
||||||
|
my $fwd = $squid{'XForwardedFor'} || 'no'; |
||||||
|
|
||||||
|
unless ($fwd =~ m/^yes|enabled|on|1$/i){ |
||||||
|
$OUT .=<<"EOF"; |
||||||
|
|
||||||
acl localhost src 127.0.0.1 |
|
||||||
follow_x_forwarded_for allow localhost |
|
||||||
forwarded_for off |
forwarded_for off |
||||||
header_access X-Forwarded-For deny all |
header_access X-Forwarded-For deny all |
||||||
|
|
||||||
|
EOF |
||||||
|
} |
||||||
|
else{ |
||||||
|
$OUT .= ''; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
Loading…
Reference in new issue