akaunting / laravel-firewall

Web Application Firewall (WAF) package for Laravel
https://akaunting.com
MIT License
943 stars 106 forks source link

Only one whitelist IP can be defined via the .env file #57

Closed carlos-reynosa closed 1 year ago

carlos-reynosa commented 2 years ago

This only allows 1 IP to be defined within the .env file.

Getting the environment value grabs a whole string: https://github.com/akaunting/laravel-firewall/blob/72f30fa7962e4682aca341ba273156dbc483da6b/src/Config/firewall.php#L7

When it's used it is only treated as containing 1 IP in a string: https://github.com/akaunting/laravel-firewall/blob/72f30fa7962e4682aca341ba273156dbc483da6b/src/Traits/Helper.php#L24