aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns/tinydns.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-24 01:50:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-24 01:50:22 +0000
commit674a7f07a4bea925d057a31aba943d0ae7fa54d1 (patch)
tree11c2100420cada5fa418c1584f766a7e3ebe2ef9 /packages/tinydns/tinydns.inc
parent87c4907f7fc19e7b29afd34f67553400fddd8fb4 (diff)
downloadpfsense-packages-674a7f07a4bea925d057a31aba943d0ae7fa54d1.tar.gz
pfsense-packages-674a7f07a4bea925d057a31aba943d0ae7fa54d1.tar.bz2
pfsense-packages-674a7f07a4bea925d057a31aba943d0ae7fa54d1.zip
Use monitorip if available.
Diffstat (limited to 'packages/tinydns/tinydns.inc')
-rw-r--r--packages/tinydns/tinydns.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 76152040..623c96e8 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -232,13 +232,13 @@ function tinydns_setup_ping_items() {
else
$row['pingthreshold'] = "";
if($row['monitorip'])
- fwrite($fd, ip . "|" . $row['monitorip'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php|{$pingthreshold}\n");
+ fwrite($fd, $ip . "|" . $row['monitorip'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php|{$pingthreshold}\n");
else
- fwrite($fd, $ip . "|" . $row['failoverip'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php|{$pingthreshold}\n");
+ fwrite($fd, $ip . "|" . $monitorip . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php|{$pingthreshold}\n");
}
}
if($domain['monitorip'])
- fwrite($fd, $ip . "|" . $row['monitorip'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php|{$pingthreshold}\n");
+ fwrite($fd, $ip . "|" . $domain['monitorip'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php|{$pingthreshold}\n");
else
fwrite($fd, $ip . "|" . $row['failoverip'] . "|3|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php|{$pingthreshold}\n");