summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-04 11:17:42 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-02-04 11:17:42 -0200
commita75a49f6e5c31568af6c25bb95d833a0be69fa00 (patch)
tree65d2e0086a94c2bf0e20103e9a890c7a3c966b15 /etc
parent2899400585c53bc1169bd9ee887eea4372b826fc (diff)
downloadpfsense-a75a49f6e5c31568af6c25bb95d833a0be69fa00.zip
pfsense-a75a49f6e5c31568af6c25bb95d833a0be69fa00.tar.gz
Fix get_interface_subnetv6() for VIPs
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc20
1 files changed, 10 insertions, 10 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index fdf669b..1a469ee 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -4382,16 +4382,16 @@ function get_interface_subnetv6($interface = "wan")
{
global $config;
- if (!is_array($config['interfaces'][$interface]))
- return null;
- switch($config['interfaces'][$interface]['ipaddrv6']) {
- case "6rd":
- case "6to4":
- $realif = "{$interface}_stf";
- break;
- default:
- $realif = get_real_interface($interface);
- break;
+ if (is_array($config['interfaces'][$interface])) {
+ switch($config['interfaces'][$interface]['ipaddrv6']) {
+ case "6rd":
+ case "6to4":
+ $realif = "{$interface}_stf";
+ break;
+ default:
+ $realif = get_real_interface($interface);
+ break;
+ }
}
if (!$realif) {
if (preg_match("/^[a-z0-9]+_vip/i", $interface))
OpenPOWER on IntegriCloud