diff options
author | Ermal <eri@pfsense.org> | 2013-06-17 09:23:32 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-06-17 09:23:32 +0000 |
commit | 4cbc0ae995500434e992062f0a1a0db167b92b67 (patch) | |
tree | c8f9f4469532175267593c169e2d7d74698f7e28 /etc/inc/gwlb.inc | |
parent | de82ec90abcb777d5004a179a807d9d5becd7529 (diff) | |
download | pfsense-4cbc0ae995500434e992062f0a1a0db167b92b67.zip pfsense-4cbc0ae995500434e992062f0a1a0db167b92b67.tar.gz |
Remove unused code and spurious alert
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 16 |
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; |