Fix tdr_get_next_ipfw_rule to not return 2 every time.

This commit is contained in:
Scott Ullrich 2007-04-22 21:27:59 +00:00
parent 703714fe41
commit 98aa3eb6f2

View File

@ -496,7 +496,7 @@ function tdr_install_rule($rule) {
******/
function tdr_get_next_ipfw_rule() {
global $tdr_next_ipfw_rule;
if(!$tdr_next_ipfw_rule)
if(intval($tdr_next_ipfw_rule) < 2)
$tdr_next_ipfw_rule = 2;
return $tdr_next_ipfw_rule;
}