diff options
author | Phil Davis <phil.davis@inf.org> | 2017-04-16 16:08:25 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2017-04-16 16:08:25 +0545 |
commit | f625f76cb24069e6cfc2ac511781627accc05286 (patch) | |
tree | 0ff35f49ea85322965b10dd0a8d25e719ad38506 /src/etc | |
parent | f593f80b48027485c97516dcda4336b31a9f58a2 (diff) | |
download | pfsense-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.inc | 5 |
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)) { |