summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-30 20:22:58 +0000
committerErmal <eri@pfsense.org>2010-04-30 20:22:58 +0000
commit7bed82221ae8c4d9beffc05d35952d212ea7001e (patch)
treeab94114b75ce8f66bd78e1f82165ba0e914914d5 /etc/inc/filter.inc
parent0307f35126ee87651f213624c4d6c6e302863e52 (diff)
downloadpfsense-7bed82221ae8c4d9beffc05d35952d212ea7001e.zip
pfsense-7bed82221ae8c4d9beffc05d35952d212ea7001e.tar.gz
Ticket #506. Correctly save dynamic gateways extra parameters.
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r--etc/inc/filter.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 4a9ac22..5dc5cd5 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -550,7 +550,7 @@ function filter_generate_gateways() {
$gwip = get_interface_gateway($gateway['friendlyiface']);
if (is_ipaddr($gwip) && !empty($int))
$route = "route-to ( {$int} {$gwip} )";
- $rules .= "{$gwname} = \" {$route} \"\n";
+ $rules .= "GW{$gwname} = \" {$route} \"\n";
}
}
@@ -584,7 +584,7 @@ function filter_generate_gateways() {
}
}
}
- $rules .= "{$gateway} = \" {$route} \"\n";
+ $rules .= "GW{$gateway} = \" {$route} \"\n";
}
}
@@ -1499,7 +1499,7 @@ function filter_generate_user_rule($rule) {
/* if user has selected a custom gateway, lets work with it */
else if($rule['gateway'] <> "") {
/* Add the load balanced gateways */
- $aline['route'] = " \${$rule['gateway']} ";
+ $aline['route'] = " \$GW{$rule['gateway']} ";
}
if(isset($rule['protocol'])) {
OpenPOWER on IntegriCloud