diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-03-12 07:12:11 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-03-12 07:13:02 +0100 |
commit | 7bc6023222cfdc1a55452ee89f8b87d88808f500 (patch) | |
tree | d3feb274b423835e8effc4877648d41cc3a81eef /etc/inc/gwlb.inc | |
parent | e637075a7eeeebe6ec9393878962749a7eac8b70 (diff) | |
download | pfsense-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.inc | 6 |
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'])); + } } } } |