From d93776088cc5da743feaae98c5cbd1edaef3a8d1 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 20 Mar 2013 21:53:09 +0000 Subject: Check lower bound as well --- etc/inc/interfaces.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 545d236..e889cad 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3347,7 +3347,7 @@ function interface_6rd_configure($interface = "wan", $wancfg) { pfSense_interface_rename($tmpstfiface, $stfiface); pfSense_interface_flags($stfiface, IFF_LINK2); mwexec("/sbin/ifconfig {$stfiface} inet6 {$rd6prefix}/{$rd6prefixlen}"); - if ($wancfg['prefix-6rd-v4plen'] < 32) + if ($wancfg['prefix-6rd-v4plen'] > 0 && $wancfg['prefix-6rd-v4plen'] < 32) mwexec("/sbin/ifconfig {$stfiface} stfv4net {$ip4address}/{$wancfg['prefix-6rd-v4plen']}"); if ($g['debug']) log_error("Created 6rd interface {$stfiface} {$rd6prefix}/{$rd6prefixlen}"); -- cgit v1.1