summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-30 20:41:49 +0000
committerErmal <eri@pfsense.org>2010-04-30 20:41:49 +0000
commitec313443f408caddab8725fc0cb5072459277cc4 (patch)
tree635e13c68335a667ddfd303acc76698f7c9c09ad
parent7d9eef10a658f5a241099a6b34c4b6a64ba6f471 (diff)
downloadpfsense-ec313443f408caddab8725fc0cb5072459277cc4.zip
pfsense-ec313443f408caddab8725fc0cb5072459277cc4.tar.gz
Remove check that prevented bugs from happening. Now all code paths are safe from this.
-rw-r--r--etc/inc/gwlb.inc13
1 files changed, 0 insertions, 13 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index ba1d9f0..3506869 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -499,19 +499,6 @@ function lookup_gateway_interface_by_name($name) {
function get_interface_gateway($interface, &$dynamic = false) {
global $config, $g;
- $iflist = get_configured_interface_with_descr();
- /*
- * XXX: BUG: This is silly at first, but we may be called with the interface
- * descr for no apparent reason!!!
- * Probably one of those silly strtoupper() legacy stuff!
- */
- foreach ($iflist as $ifent => $ifdesc) {
- if ($ifent == $interface || $ifdesc == $interface) {
- $interface = $ifent;
- break;
- }
- }
-
$gw = NULL;
$gwcfg = $config['interfaces'][$interface];
OpenPOWER on IntegriCloud