antonioribeiro / firewall

Firewall package for Laravel applications
BSD 3-Clause "New" or "Revised" License
1.39k stars 163 forks source link

Reversed negation #126

Closed meyer59 closed 6 years ago

meyer59 commented 6 years ago

Hi, I am getting blocked even if my ip is whitelisted. At this point, it seems like this should be inversed with a negation. ! $this->config()->get("attack_blocker.action.{$this->record[$type]['type']}.blacklist_whitelisted"); The meaning: To have a whitelisted Ip we should have the ip in the whitelisted array AND NOT having the blacklist_whitelisted option to true. https://github.com/antonioribeiro/firewall/blob/ea54682c8d87f049818fb22c7524318c82e0f263/src/Support/AttackBlocker.php#L273 Anyone is running the smae issue ?

antonioribeiro commented 6 years ago

Should be fixed in the next release.