From 22c9fc09965466c03a6192ffd469fba22f7ac906 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 22 Apr 2007 21:31:37 +0000 Subject: Correctly incriment skipto rule number. --- etc/inc/pfsense-utils.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc/inc/pfsense-utils.inc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index f87feda..2facb14 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -460,7 +460,8 @@ function tdr_create_ipfw_rule($rule, $type) { /* piece together the actual user rule */ if($type == "allow") { - $next_rule = tdr_get_next_ipfw_rule+2; + $next_rule = tdr_get_next_ipfw_rule(); + $next_rule = $next_rule+1; $type = "skipto $next_rule"; } -- cgit v1.1