php-spx icon indicating copy to clipboard operation
php-spx copied to clipboard

Subnet mask support for spx.http_trusted_proxies

Open paukert opened this issue 1 year ago • 2 comments

Hello,

I was wondering if it would be possible to add subnet mask support for spx.http_trusted_proxies or if it would be possible to allow * as a value for this configuration.

The value of $_SERVER['REMOTE_ADDR'] is quite dynamic in our use case (it is assigned from pool of IP addresses e.g. 10.10.10.0/24). We are also sure that the value of $_SERVER['<spx.http_ip_var>'] could not be forged so even * should be safe as far as I am concerned.

paukert avatar Aug 15 '24 22:08 paukert