summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-06-17 09:23:32 +0000
committerErmal <eri@pfsense.org>2013-06-17 09:24:06 +0000
commit8cea45e4f8c5ee52898f7861ce7152e164668798 (patch)
tree8f955e330efa1fa570bbf29758e786cf49f043e5 /etc
parent891dfb2496e390afb0fbc389c3652c6f3b62c09a (diff)
downloadpfsense-8cea45e4f8c5ee52898f7861ce7152e164668798.zip
pfsense-8cea45e4f8c5ee52898f7861ce7152e164668798.tar.gz
Remove unused code and spurious alert
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/gwlb.inc16
1 files changed, 0 insertions, 16 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 15ebd24..1d73891 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -233,22 +233,6 @@ EOD;
$apingercfg .= " rrd file \"{$g['vardb_path']}/rrd/{$gateway['name']}-quality.rrd\"\n";
$apingercfg .= "}\n";
$apingercfg .= "\n";
- /*
- * If the gateway is the same as the monitor we do not add a
- * route as this will break the routing table.
- * Add static routes for each gateway with their monitor IP
- * not strictly necessary but is a added level of protection.
- */
- if (is_ipaddr($gateway['gateway']) && $gateway['monitor'] != $gateway['gateway']) {
- log_error(sprintf(gettext('Removing static route for monitor %1$s and adding a new route through %2$s'), $gateway['monitor'], $gateway['gateway']));
- if(is_ipaddrv6($gateway['gateway'])) {
- $inetfamily = "-inet6";
- } else {
- $inetfamily = "-inet";
- }
- // mwexec("/sbin/route change {$inetfamily} -host " . escapeshellarg($gateway['monitor']) .
- // " " . escapeshellarg($gateway['gateway']), true);
- }
$apingerconfig .= $alarmscfg;
$apingerconfig .= $apingercfg;
OpenPOWER on IntegriCloud