diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-11-13 10:35:54 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-11-14 10:38:37 -0200 |
commit | c39c8b8ffc6dbfbe525364f736b221c83a6e1151 (patch) | |
tree | 5d29aa24f62345f0f93aa2387955684046cb8df0 /etc/inc/filter.inc | |
parent | 34f9597749f0a5ab71d9a65f953984a6ceefc3f3 (diff) | |
download | pfsense-c39c8b8ffc6dbfbe525364f736b221c83a6e1151.zip pfsense-c39c8b8ffc6dbfbe525364f736b221c83a6e1151.tar.gz |
Remove unused variables and fix automatic nat to alias-address
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 94610a8..8799e3f 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1624,8 +1624,6 @@ function filter_nat_rules_generate() { $netip = explode("/", $route['network']); if (isset($GatewaysList[$route['gateway']])) { $gateway =& $GatewaysList[$route['gateway']]; - $gatewayip = $gateway['gateway']; - $interfacegw = $gateway['interface']; if(!interface_has_gateway($gateway['interface']) && is_private_ip($netip[0])) { $numberofnathosts++; $tonathosts .= "{$route['network']} "; @@ -1636,10 +1634,8 @@ function filter_nat_rules_generate() { foreach($FilterIflist as $ocname => $oc) { if(!interface_has_gateway($ocname)) { if(is_ipaddr($oc['alias-address'])) { - $aliastarget = $oc['alias-address']; - $aliassubnet = $oc['alias-subnet']; $numberofnathosts++; - $tonathosts .= "{$oc['sa']}/{$oc['sn']} "; + $tonathosts .= "{$oc['alias-address']}/{$oc['alias-subnet']} "; } if($oc['sa']) { $tonathosts .= "{$oc['sa']}/{$oc['sn']} "; |