Skip to content
Snippets Groups Projects
Commit e2204ee4 authored by Andy Yates's avatar Andy Yates
Browse files

Adding in the option to look for the forwarded host and use that as our IP...

Adding in the option to look for the forwarded host and use that as our IP rather than the IP of any load-balancer
parent 2182e816
No related branches found
No related tags found
No related merge requests found
......@@ -17,4 +17,12 @@ sub _create_backend {
die "backend must be a cache object";
}
sub client_identifier {
my ($self, $env) = @_;
if($env->{HTTP_X_FORWARDED_HOST}) {
return $self->key_prefix."_".$env->{HTTP_X_FORWARDED_HOST};
}
return $self->SUPER::client_identifier($env);
}
1;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment