summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-11-13 18:38:03 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-11-13 18:38:03 +0000
commit321d0be8d502b3c3f63185c46bb171f7fd47d5b2 (patch)
treea5bdfad91705492a72629037abd40fd79b99d1a4 /etc
parent8f96374c8a11be3eff06ba8e19bbe69b98b87ea2 (diff)
downloadpfsense-321d0be8d502b3c3f63185c46bb171f7fd47d5b2.zip
pfsense-321d0be8d502b3c3f63185c46bb171f7fd47d5b2.tar.gz
Improve monitor IP lookup
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 9a230db..e42fd44 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -3007,7 +3007,11 @@ function enable_rrd_graphing() {
}
$numpings = 5;
- $monitorip = lookup_gateway_monitor_ip_by_name($config['interfaces'][$ifname]['gateway']);
+ if(isset($config['interfaces'][$ifname]['gateway'])) {
+ $monitorip = lookup_gateway_monitor_ip_by_name($config['interfaces'][$ifname]['gateway']);
+ } else {
+ $monitorip = lookup_gateway_monitor_ip_by_name($ifname);
+ }
if(!is_ipaddr($monitorip)) {
$monitorip = get_interface_gateway($ifname);
}
OpenPOWER on IntegriCloud