summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-04-04 13:40:49 -0400
committerjim-p <jimp@pfsense.org>2012-04-04 13:44:28 -0400
commit08ab5cd2b45247ea73e022d9334c218b15c281ec (patch)
tree7cdd7433d8a5651d7dd2e14c06dd4f5ab1ebe1a2 /etc/inc/system.inc
parent73c8a6c714e0801578ae99285c3f4fbef11b8f23 (diff)
downloadpfsense-08ab5cd2b45247ea73e022d9334c218b15c281ec.zip
pfsense-08ab5cd2b45247ea73e022d9334c218b15c281ec.tar.gz
Expand these checks to include 'dynamic' or they'll never match dynamic gateways, leading to issues with routing.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index ccc5416..e9f7781 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -353,7 +353,7 @@ function system_routing_configure($interface = "") {
if (is_array($config['gateways']['gateway_item'])) {
mwexec("/bin/rm {$g['tmp_path']}/*_defaultgw", true);
foreach ($config['gateways']['gateway_item'] as $gateway) {
- if (isset($gateway['defaultgw']) && (is_ipaddrv4($gateway['gateway']))) {
+ if (isset($gateway['defaultgw']) && ((is_ipaddrv4($gateway['gateway'])) || ($gateway['gateway'] == "dynamic"))) {
if(strstr($gateway['gateway'], ":"))
break;
if ($gateway['gateway'] == "dynamic")
@@ -370,7 +370,7 @@ function system_routing_configure($interface = "") {
}
}
foreach ($config['gateways']['gateway_item'] as $gateway) {
- if (isset($gateway['defaultgw']) && (is_ipaddrv6($gateway['gateway']))) {
+ if (isset($gateway['defaultgw']) && ((is_ipaddrv6($gateway['gateway'])) || ($gateway['gateway'] == "dynamic6"))) {
if ($gateway['gateway'] == "dynamic6")
$gateway['gateway'] = get_interface_gateway_v6($gateway['interface']);
$gatewayipv6 = $gateway['gateway'];
OpenPOWER on IntegriCloud