Closed decowboy closed 5 years ago
The cidrToRange() function is called by Firewall for any entry, not just cidr ranges. Because the parent function has the function call in a try-catch block, this isn't an issue.
However, many users report warnings thrown by cidrToRange(), as is referenced here: https://github.com/antonioribeiro/firewall/issues/137
These warnings aren't circumvented by the try-catch block, but this additional check should prevent them altogether.
Up 👍
Nice, thank you!
The cidrToRange() function is called by Firewall for any entry, not just cidr ranges. Because the parent function has the function call in a try-catch block, this isn't an issue.
However, many users report warnings thrown by cidrToRange(), as is referenced here: https://github.com/antonioribeiro/firewall/issues/137
These warnings aren't circumvented by the try-catch block, but this additional check should prevent them altogether.