summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-01-09 11:51:00 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-01-09 11:51:00 -0200
commit5019ff8f89f16e401d29f48029c1e963d6b0a4ac (patch)
tree0dcb053d7a7c93b896081d2d517464e5481f7aa1
parent02b8bfaebe03cbdd9ce312ba64d9b375842043ed (diff)
downloadpfsense-5019ff8f89f16e401d29f48029c1e963d6b0a4ac.zip
pfsense-5019ff8f89f16e401d29f48029c1e963d6b0a4ac.tar.gz
Use get_parent_interface() instead of doing it manually
-rw-r--r--etc/inc/filter.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 1d85eb8..b9641b1 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -537,10 +537,10 @@ function filter_generate_aliases() {
else {
$aliases .= "{$ifcfg['descr']} = \"{ {$ifcfg['if']}";
- if ($ifcfg['type'] == 'pptp' && is_array($config['ppps']['ppp'])) {
- foreach ($config['ppps']['ppp'] as $ppps) {
- if ($ppps['if'] == $ifcfg['if']) {
- $aliases .= " {$ppps['ports']}";
+ if ($ifcfg['type'] == 'pptp') {
+ foreach (get_parent_interface($ifcfg['if']) as $parent_if) {
+ if ($parent_if != $ifcfg['if']) {
+ $aliases .= " {$parent_if}";
}
}
}
OpenPOWER on IntegriCloud