diff options
author | Ermal <eri@pfsense.org> | 2011-05-24 20:05:00 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-05-24 20:05:00 +0000 |
commit | d1a44a5f1c64d905f3389eff0ce747a9b810045a (patch) | |
tree | b75ba1953e1201b8a813d2aafb678b2bebc8eed9 /etc | |
parent | 7e107d2ef73bc233113fd0cddecd5e0ac21b2e9b (diff) | |
download | pfsense-d1a44a5f1c64d905f3389eff0ce747a9b810045a.zip pfsense-d1a44a5f1c64d905f3389eff0ce747a9b810045a.tar.gz |
Correct the interface alias generation.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index c644379..8463d3c 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -513,8 +513,15 @@ function filter_generate_aliases() { $aliases = "loopback = \"{ lo0 }\"\n"; foreach ($FilterIflist as $if => $ifcfg) { - $aliases .= "{$ifcfg['descr']} = \"{ {$ifcfg['if']}"; - $aliases .= " }\"\n"; + if (is_array($ifcfg)) { + if ($ifcfg[0]['if'] == 'pppoe') { + $aliases .= "{$ifcfg[0]['descr']} = \"{ {$ifcfg[0]['if']}"; + $aliases .= " }\"\n"; + } + } else { + $aliases .= "{$ifcfg['descr']} = \"{ {$ifcfg['if']}"; + $aliases .= " }\"\n"; + } } $aliases .= "\n#SSH Lockout Table\n"; |