summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-04-16 16:08:25 +0545
committerPhil Davis <phil.davis@inf.org>2017-04-16 16:08:25 +0545
commitf625f76cb24069e6cfc2ac511781627accc05286 (patch)
tree0ff35f49ea85322965b10dd0a8d25e719ad38506 /src/etc
parentf593f80b48027485c97516dcda4336b31a9f58a2 (diff)
downloadpfsense-f625f76cb24069e6cfc2ac511781627accc05286.zip
pfsense-f625f76cb24069e6cfc2ac511781627accc05286.tar.gz
Refactor get_configured_interface_list_by_realif remove unused parameter
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/util.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc
index 6820a24..f9491a5 100644
--- a/src/etc/inc/util.inc
+++ b/src/etc/inc/util.inc
@@ -1386,16 +1386,13 @@ function get_configured_interface_list($only_opt = false, $withdisabled = false)
}
/* return the configured interfaces list. */
-function get_configured_interface_list_by_realif($only_opt = false, $withdisabled = false) {
+function get_configured_interface_list_by_realif($withdisabled = false) {
global $config;
$iflist = array();
/* if list */
foreach ($config['interfaces'] as $if => $ifdetail) {
- if ($only_opt && ($if == "wan" || $if == "lan")) {
- continue;
- }
if (isset($ifdetail['enable']) || $withdisabled == true) {
$tmpif = get_real_interface($if);
if (!empty($tmpif)) {
OpenPOWER on IntegriCloud