summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2011-01-19 08:30:05 +0100
committersmos <seth.mos@dds.nl>2011-01-19 08:30:05 +0100
commit911a262f1821ec6e0148d240d7e9574489a9baac (patch)
treea47c4ca13697b6be57d1b300485cc0698e838b12
parentff998f10e47734bf8533d58b296e1e3ec2f306df (diff)
downloadpfsense-911a262f1821ec6e0148d240d7e9574489a9baac.zip
pfsense-911a262f1821ec6e0148d240d7e9574489a9baac.tar.gz
Prevent a IPv6 address from breaking system routing. This is a hack because we don't have the proper ip validation in 2.0 mainline
-rw-r--r--etc/inc/system.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 0cdd5b4..ef5e2bc 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -325,6 +325,8 @@ function system_routing_configure($interface = "") {
mwexec("/bin/rm {$g['tmp_path']}/*_defaultgw", true);
foreach ($config['gateways']['gateway_item'] as $gateway) {
if (isset($gateway['defaultgw'])) {
+ if(strstr($gateway['gateway'], ":"))
+ break;
if ($gateway['gateway'] == "dynamic")
$gateway['gateway'] = get_interface_gateway($gateway['interface']);
$gatewayip = $gateway['gateway'];
OpenPOWER on IntegriCloud