SerCeMan / firewalker

Testing framework for Cloudflare Firewall rules
MIT License
55 stars 12 forks source link

allow threat score of 0 #12

Closed Juddling closed 3 years ago

Juddling commented 3 years ago

👋 thank you for your awesome package 😀

0 is a valid value of threat score - meaning no risk, https://developers.cloudflare.com/firewall/cf-firewall-language/fields#standard-fields

The || operator is evaluating to false and using the default high risk value instead.