Skip to content

Releases: fideloper/TrustedProxy

Fixed bug in php7+ with symfony < 3.3

31 May 13:23
Compare
Choose a tag to compare

PHP7 raised an warning when non-numeric values were used in bitwise operations (e.g. $foo | $bar where $foo or $bar was not a numeric value).

This resulted in a thrown ErrorException within Laravel.

This fixes that by returning out of the function before the bitwise calculation is complete, under the assumption that that condition only happens when Symfony < 3.3.

Compatibility with Symfony 3.3

30 May 14:37
Compare
Choose a tag to compare

Merged in PRs #70 and #73 to be compatible with Symfony 3.3, which adds a secondary parameter to the $request->setTrustedProxies() method.

Resources to read more:

Note: This package should be backwards compatible with Symfony 3.2 and a Laravel install using Symfony 3.2. Let me know ASAP if that's not the case for you.

Backwards compatibility with older laravel

23 May 13:55
Compare
Choose a tag to compare

Merged #66 to fix issues with older versions of Laravel

Set proxies in middleware

23 Mar 23:21
Compare
Choose a tag to compare
  • Fixed whitespace (mixing tabs + spaces) via #63
  • Able to set trusted proxies within the middleware, instead of just within the configuration file via #63
  • Updated docs, fixing broken markdown via #61

Merged PR #52

20 Dec 14:25
Compare
Choose a tag to compare

Merged PR #52 to address possibility of multiple, chained proxies (e.g. a CDN and load balancer both in use). This correctly gets the end-user (client) IP address.

3.1.0: Merge pull request #43 from GrahamCampbell/patch-5

24 Dec 15:05
Compare
Choose a tag to compare
  • Lumen support
  • Documentation update/improvement

Thanks @GrahamCampbell and other contributors!

Note: Composer current sets the dependencies on Laravel ~5.0, let me know if you run into issue with this on newer Laravel.

Allow Multiple Client IPs

20 Nov 02:24
Compare
Choose a tag to compare

Fixing #21, allowing multiple client IP addresses when using the * wildcard proxy IP address.