summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2010-07-29 20:16:34 +0200
committersmos <seth.mos@dds.nl>2010-07-29 20:16:34 +0200
commit4473744f303f2282cdf13e04f7e4ac2fe7f0e0c6 (patch)
tree8b24a2ef9bcf54d449677d83645d2ddbd129741b /etc
parent6fe72bc84ee8926d787613455b0c5eccf23788e2 (diff)
downloadpfsense-4473744f303f2282cdf13e04f7e4ac2fe7f0e0c6.zip
pfsense-4473744f303f2282cdf13e04f7e4ac2fe7f0e0c6.tar.gz
Create a valid apinger configuration file for targets that are down during creation.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/gwlb.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 89eeab9..2ff52a1 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -160,7 +160,11 @@ EOD;
if (!is_ipaddr($gateway['monitor']))
continue;
- $gwifip = find_interface_ip($gateway['interface']);
+ if($gateway['monitor'] == "127.0.0.{$i}") {
+ $gwifip = "127.0.0.1";
+ } else {
+ $gwifip = find_interface_ip($gateway['interface']);
+ }
if (!is_ipaddr($gwifip))
continue; //Skip this target
OpenPOWER on IntegriCloud