From e80601a284d9dc2bd35f2c9fb082c3772d032ca9 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 5 Feb 2013 19:01:02 +0000 Subject: Protect from cases when the ipv4 might be missing on the interface for any reason --- etc/inc/filter.inc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'etc') diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 7714a8b..e930119 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -528,7 +528,6 @@ function filter_generate_aliases() { $aliases .= " }\"\n"; } } elseif (!empty($ifcfg['descr']) && !empty($ifcfg['if'])) { - /* XXX possibly add 6to4 in the future as well, stf0 */ if ($ifcfg['type6'] == '6rd') $aliases .= "{$ifcfg['descr']} = \"{ {$ifcfg['if']} {$if}_stf"; else if ($ifcfg['type6'] == '6to4') @@ -2621,14 +2620,19 @@ EOD; /* allow access to DHCP server on interfaces */ if(isset($config['dhcpd'][$on]['enable'])) { $ipfrules .= << "") { + } + + if(is_ipaddrv4($pc['ip']) && $config['dhcpd'][$on]['failover_peerip'] <> "") { $ipfrules .= <<