summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2009-03-12 07:12:11 +0100
committerSeth Mos <seth.mos@xs4all.nl>2009-03-12 07:13:02 +0100
commit7bc6023222cfdc1a55452ee89f8b87d88808f500 (patch)
treed3feb274b423835e8effc4877648d41cc3a81eef /etc/inc/gwlb.inc
parente637075a7eeeebe6ec9393878962749a7eac8b70 (diff)
downloadpfsense-7bc6023222cfdc1a55452ee89f8b87d88808f500.zip
pfsense-7bc6023222cfdc1a55452ee89f8b87d88808f500.tar.gz
Make sure we don't add any routes for the 127.0.0.2 dummy address
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 83f5edc..4a75419 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -152,8 +152,10 @@ EOD;
continue;
} else {
mwexec("/sbin/route delete -host " . escapeshellarg($gateway['monitor']));
- mwexec("/sbin/route add -host " . escapeshellarg($gateway['monitor']) .
- " " . escapeshellarg($gateway['gateway']));
+ if(! stristr("127.0.0", $gateway['gateway'])) {
+ mwexec("/sbin/route add -host " . escapeshellarg($gateway['monitor']) .
+ " " . escapeshellarg($gateway['gateway']));
+ }
}
}
}
OpenPOWER on IntegriCloud