From f22a85d836cc2881fafb5bcb291d0e5769ddb325 Mon Sep 17 00:00:00 2001 From: Heinrich Lee Yu Date: Mon, 1 Aug 2011 12:16:59 +0800 Subject: Fix tinydns load balancing reverse behavior --- config/tinydns/tinydns.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/tinydns') diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc index 102f6ebb..5efd0561 100644 --- a/config/tinydns/tinydns.inc +++ b/config/tinydns/tinydns.inc @@ -564,7 +564,7 @@ function tinydns_create_zone_file() { else $wanpingthreshold = ""; $status = tinydns_get_record_status($row['failoverip'], $pingthreshold, $wanpingthreshold); - if($status == "DOWN") { + if($status == "UP") { $record_data = tinydns_get_rowline_data($row['failoverip'], $domain['recordtype'], $ttl, $hostname, "", $domain['rdns'], $dist, $domain['src_port'], $domain['src_weight'], $domain['src_priority'], $domain['src_timestamp']); fwrite($fd, $record_data . "\n"); } -- cgit v1.2.3