From bdb4d0a17ac5ceb7593ec683c4644d6adeecbd1b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 8 Aug 2005 22:03:03 +0000 Subject: Use $gateway --- etc/inc/filter.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 269c91a..f2a64e3 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1345,7 +1345,7 @@ function generate_user_filter_rule($rule, $ngcounter) { $foundlb = 0; foreach($config['load_balancer']['lbpool'] as $lb) { if($lb['name'] == $rule['gateway']) { - $gateway = ""; + $gateway = $rule['gateway']; $line .= " route-to { "; if(file_exists("{$g['tmp_path']}/{$lb['name']}.pool")) { $lbs = split("\n", file_get_contents("{$g['tmp_path']}/{$lb['name']}.pool")); @@ -1361,7 +1361,7 @@ function generate_user_filter_rule($rule, $ngcounter) { $rule['gateway'] = $split_ip[0]; $gateway .= $rule['gateway'] . " "; } - $int = guess_interface_from_ip($rule['gateway']); + $int = guess_interface_from_ip($gateway); $line .= "(" . $int . " " . $gateway . ") "; $foundlb = 1; } -- cgit v1.1