summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2009-12-18 13:22:52 +0100
committerSeth Mos <seth.mos@xs4all.nl>2009-12-18 13:22:52 +0100
commitd68e299b2f6bff28404082b4af03f26793c0521a (patch)
treea649d700447b9bf7987521849515f2f7605b899f /etc/inc/system.inc
parent295ff120716abee4eac32d59666e07afac3fe593 (diff)
downloadpfsense-d68e299b2f6bff28404082b4af03f26793c0521a.zip
pfsense-d68e299b2f6bff28404082b4af03f26793c0521a.tar.gz
clarify comment, throw a log message when get into this code path, which should not happen
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index ba041df..75ea2de 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -307,10 +307,11 @@ function system_routing_configure() {
$interfacegw = $gateway['interface'];
}
}
- if(($interfacegw <> "bgpd") && (is_ipaddr($gatewayip)))
+ if(($interfacegw <> "bgpd") && (is_ipaddr($gatewayip))) {
mwexec("/sbin/route add default " . escapeshellarg($gatewayip), true);
+ }
} else {
- /* FIXME */
+ log_error("SYSTEM: We do not have a gateways array in our XML. Is this configuration damaged?");
/* adding gateway for 1.2-style configs without the new
gateway setup configured.
Force WAN to be default gateway because that is the
OpenPOWER on IntegriCloud