summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2012-02-22 07:01:17 -0500
committerChris Buechler <cmb@pfsense.org>2012-02-22 07:01:17 -0500
commitf581cb10fd9fe91359f92fd37f5ff788d85d2d7b (patch)
treeac99eedf3962b298cb116d945ee4880d5a5869fc /etc/inc
parent055e182f01761f0b1db93d1d41b6f71dd279fce7 (diff)
downloadpfsense-f581cb10fd9fe91359f92fd37f5ff788d85d2d7b.zip
pfsense-f581cb10fd9fe91359f92fd37f5ff788d85d2d7b.tar.gz
only skip adding default gateway if OLSR is actually enabled, and log why you're skipping it, otherwise it's tons of "fun" to dig in and figure out what's going on.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/system.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 14d4e89..57de477 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -401,8 +401,9 @@ function system_routing_configure($interface = "") {
/* if OLSRD is enabled, allow WAN to house DHCP. */
if($config['installedpackages']['olsrd']) {
foreach($config['installedpackages']['olsrd']['config'] as $olsrd) {
- if($olsrd['enabledyngw'] == "on") {
+ if(($olsrd['enabledyngw'] == "on") && ($olsrd['enable'] == "on")) {
$dont_add_route = true;
+ log_error(sprintf(gettext("Not adding default route because OLSR dynamic gateway is enabled.")));
break;
}
}
OpenPOWER on IntegriCloud