summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-08 22:03:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-08 22:03:03 +0000
commitbdb4d0a17ac5ceb7593ec683c4644d6adeecbd1b (patch)
tree988c48d2b096665bd258d3c3697600781869b557 /etc
parent58752da57d5d0dd20f46df0eeb4904d8ddba004d (diff)
downloadpfsense-bdb4d0a17ac5ceb7593ec683c4644d6adeecbd1b.zip
pfsense-bdb4d0a17ac5ceb7593ec683c4644d6adeecbd1b.tar.gz
Use $gateway
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc4
1 files changed, 2 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud