From ddb179f340945db7fbe3cfca4c89a710b338694e Mon Sep 17 00:00:00 2001 From: "Christoph Burchert (Chb)" Date: Wed, 19 Oct 2011 15:22:53 +0200 Subject: [PATCH] Mini-fix the minor fix Signed-off-by: Christoph Burchert (Chb) --- scripts/jobs/cron_tasks.inc.dns.10.bind.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jobs/cron_tasks.inc.dns.10.bind.php b/scripts/jobs/cron_tasks.inc.dns.10.bind.php index 82ee065f..9daac66d 100644 --- a/scripts/jobs/cron_tasks.inc.dns.10.bind.php +++ b/scripts/jobs/cron_tasks.inc.dns.10.bind.php @@ -296,7 +296,7 @@ class bind $zonefile.= str_replace('www.' . $domain['domain'], '', $subdomain['domain']) . ' IN A ' . $subdomain['ip'] . "\n"; } } - elseif(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) + elseif(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) { $zonefile.= str_replace('.' . $domain['domain'], '', $subdomain['domain']) . ' IN AAAA ' . $subdomain['ip'] . "\n";