From 466cabedd6646916965c8671a9eef1a7192901c4 Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Mon, 2 Jun 2014 15:46:18 -0500 Subject: allow ipaliases to be configured on lo0 --- etc/inc/interfaces.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 9310f49..f5aee01 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2103,10 +2103,10 @@ function interface_ipalias_configure(&$vip) { if ($vip['mode'] != "ipalias") return; - if (!isset($config['interfaces'][$vip['interface']])) + if ($vip['interface'] != 'lo0' && !isset($config['interfaces'][$vip['interface']])) return; - if (!isset($config['interfaces'][$vip['interface']]['enable'])) + if ($vip['interface'] != 'lo0' && !isset($config['interfaces'][$vip['interface']]['enable'])) return; $if = get_real_interface($vip['interface']); -- cgit v1.1