Skip to content

Commit 443057a

Browse files
committed
Merge pull request #33 from kbond/patch-1
added note about trusted proxies
2 parents 196acc5 + e3c4e6e commit 443057a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ Usage
3939
This bundle registers a `bazinga_geocoder.geocoder` service which is an instance
4040
of `Geocoder`. You'll be able to do whatever you want with it.
4141

42+
**NOTE:** When using `Request::getClientIp()` with Symfony 2.1+, ensure you have a trusted proxy set in your
43+
`config.yml`:
44+
45+
``` yaml
46+
# app/config/config.yml
47+
framework:
48+
trusted_proxies: ['127.0.0.1']
49+
# ...
50+
```
51+
4252
#### Killer Feature ####
4353

4454
You can fake the `REMOTE_ADDR` HTTP parameter through this bundle in order to get

0 commit comments

Comments
 (0)