diff options
author | smos <seth.mos@dds.nl> | 2010-07-29 20:16:34 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2010-07-29 20:16:34 +0200 |
commit | 4473744f303f2282cdf13e04f7e4ac2fe7f0e0c6 (patch) | |
tree | 8b24a2ef9bcf54d449677d83645d2ddbd129741b /etc | |
parent | 6fe72bc84ee8926d787613455b0c5eccf23788e2 (diff) | |
download | pfsense-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.inc | 6 |
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 |