aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns/tinydns.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-24 01:10:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-24 01:10:09 +0000
commit87c4907f7fc19e7b29afd34f67553400fddd8fb4 (patch)
tree64a8f346c84c9128182b7e28692e4d5236bfc20e /packages/tinydns/tinydns.inc
parent5ee43dc752b511452a9b8283ff8205364ee5ee4e (diff)
downloadpfsense-packages-87c4907f7fc19e7b29afd34f67553400fddd8fb4.tar.gz
pfsense-packages-87c4907f7fc19e7b29afd34f67553400fddd8fb4.tar.bz2
pfsense-packages-87c4907f7fc19e7b29afd34f67553400fddd8fb4.zip
Use monitorip if available.
Diffstat (limited to 'packages/tinydns/tinydns.inc')
-rw-r--r--packages/tinydns/tinydns.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 18bf5c6c..76152040 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -232,13 +232,16 @@ function tinydns_setup_ping_items() {
else
$row['pingthreshold'] = "";
if($row['monitorip'])
- fwrite($fd, $row['monitorip'] . "|" . $row['failoverip'] . "|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");
}
}
if($domain['monitorip'])
- fwrite($fd, $domain['monitorip'] . "|" . $row['failoverip'] . "|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");
+
}
fclose($fd);
conf_mount_ro();